Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/01/10 18:08:04 (14 years ago)
Author:
gkronber
Message:

Made variable frequency analyzer more efficient and removed subtraction of base line (variable impacts are now in the range 0..1 instead of -1 .. 1) #1011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/BestSymbolicRegressionSolutionAnalyzer.cs

    r4068 r4125  
    124124        foreach (var dataRow in variableFrequencies.Rows) {
    125125          string variableName = dataRow.Name;
    126           double integral = 0;
    127           if (dataRow.Values.Count > 1) {
    128             double baseline = dataRow.Values.First();
    129             integral = (from value in dataRow.Values
    130                         select value - baseline)
    131                               .Sum();
    132             integral /= dataRow.Values.Count;
    133           }
    134           impacts[rowIndex++, 0] = integral;
     126          impacts[rowIndex++, 0] = dataRow.Values.Average();
    135127        }
    136128        return impacts;
Note: See TracChangeset for help on using the changeset viewer.