Changeset 2367 for trunk/sources/HeuristicLab.DataAnalysis
- Timestamp:
- 09/17/09 10:15:56 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/3.2/Dataset.cs
r2319 r2367 34 34 private Dictionary<int, Dictionary<int, double>>[] cachedRanges; 35 35 private bool cachedValuesInvalidated = true; 36 36 37 37 public Dataset() 38 38 : this(new double[,] { { 0.0 } }) { … … 128 128 129 129 #region Modify and get values 130 public double GetValue(int i, int j) {131 return samples[columns * i + j];130 public double GetValue(int row, int column) { 131 return samples[columns * row + column]; 132 132 } 133 133 … … 259 259 } 260 260 double range = Statistics.Range(values); 261 if (!cachedRanges[column].ContainsKey(start)) cachedRanges[column][start] = new Dictionary<int, double>();261 if (!cachedRanges[column].ContainsKey(start)) cachedRanges[column][start] = new Dictionary<int, double>(); 262 262 cachedRanges[column][start][end] = range; 263 263 return range;
Note: See TracChangeset
for help on using the changeset viewer.