Changeset 4125 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers
- Timestamp:
- 08/01/10 18:08:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/BestSymbolicRegressionSolutionAnalyzer.cs
r4068 r4125 124 124 foreach (var dataRow in variableFrequencies.Rows) { 125 125 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(); 135 127 } 136 128 return impacts;
Note: See TracChangeset
for help on using the changeset viewer.