Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/17/09 10:15:56 (15 years ago)
Author:
gkronber
Message:

Fixed #750 (LinearRegressionOperator should first remove columns with many NaN values and after that remove the rows with NaN values).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataAnalysis/3.2/Dataset.cs

    r2319 r2367  
    3434    private Dictionary<int, Dictionary<int, double>>[] cachedRanges;
    3535    private bool cachedValuesInvalidated = true;
    36    
     36
    3737    public Dataset()
    3838      : this(new double[,] { { 0.0 } }) {
     
    128128
    129129    #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];
    132132    }
    133133
     
    259259        }
    260260        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>();
    262262        cachedRanges[column][start][end] = range;
    263263        return range;
Note: See TracChangeset for help on using the changeset viewer.