Changeset 1784
- Timestamp:
- 05/13/09 13:53:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/3.2/Dataset.cs
r1529 r1784 258 258 259 259 public double GetMean(int column) { 260 return GetMean(column, 0, Rows - 1);260 return GetMean(column, 0, Rows); 261 261 } 262 262 263 263 public double GetMean(int column, int from, int to) { 264 264 if(!cachedMeans[column].ContainsKey(from) || !cachedMeans[column][from].ContainsKey(to)) { 265 double[] values = new double[to - from + 1];266 for(int sample = from; sample < =to; sample++) {265 double[] values = new double[to - from]; 266 for(int sample = from; sample < to; sample++) { 267 267 values[sample - from] = GetValue(sample, column); 268 268 } … … 277 277 278 278 public double GetRange(int column) { 279 return GetRange(column, 0, Rows - 1);279 return GetRange(column, 0, Rows); 280 280 } 281 281 282 282 public double GetRange(int column, int from, int to) { 283 283 if(!cachedRanges[column].ContainsKey(from) || !cachedRanges[column][from].ContainsKey(to)) { 284 double[] values = new double[to - from + 1];285 for(int sample = from; sample < =to; sample++) {284 double[] values = new double[to - from]; 285 for(int sample = from; sample < to; sample++) { 286 286 values[sample - from] = GetValue(sample, column); 287 287 }
Note: See TracChangeset
for help on using the changeset viewer.