Changeset 2144 for trunk/sources/HeuristicLab.DataAnalysis
- Timestamp:
- 07/07/09 12:48:10 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/3.2/Dataset.cs
r2038 r2144 304 304 305 305 public double GetMaximum(int column) { 306 return GetMaximum(column, 0, Rows); 307 } 308 309 public double GetMaximum(int column, int start, int end) { 306 310 double max = Double.NegativeInfinity; 307 for (int i = 0; i < Rows; i++) {311 for (int i = start; i < end; i++) { 308 312 double val = GetValue(i, column); 309 313 if (!double.IsNaN(val) && val > max) max = val; … … 313 317 314 318 public double GetMinimum(int column) { 319 return GetMinimum(column, 0, Rows); 320 } 321 322 public double GetMinimum(int column, int start, int end) { 315 323 double min = Double.PositiveInfinity; 316 for (int i = 0; i < Rows; i++) {324 for (int i = start; i < end; i++) { 317 325 double val = GetValue(i, column); 318 326 if (!double.IsNaN(val) && val < min) min = val;
Note: See TracChangeset
for help on using the changeset viewer.