Changeset 5894 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators
- Timestamp:
- 03/30/11 18:04:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators/NormalDistributionCutPointsThresholdCalculator.cs ΒΆ
r5849 r5894 64 64 double classValue = group.Key; 65 65 double mean, variance; 66 OnlineMeanAndVarianceCalculator.Calculate(estimatedClassValues, out mean, out variance); 67 classMean[classValue] = mean; 68 classStdDev[classValue] = Math.Sqrt(variance); 66 OnlineEvaluatorError meanErrorState, varianceErrorState; 67 OnlineMeanAndVarianceCalculator.Calculate(estimatedClassValues, out mean, out variance, out meanErrorState, out varianceErrorState); 68 69 if (meanErrorState == OnlineEvaluatorError.None && varianceErrorState == OnlineEvaluatorError.None) { 70 classMean[classValue] = mean; 71 classStdDev[classValue] = Math.Sqrt(variance); 72 } 69 73 } 70 74 double[] originalClasses = classMean.Keys.OrderBy(x => x).ToArray();
Note: See TracChangeset
for help on using the changeset viewer.