Changeset 8842 for branches/DataAnalysisCSVImport/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/HoeffdingsDependenceCalculator.cs
- Timestamp:
- 10/23/12 16:29:21 (11 years ago)
- Location:
- branches/DataAnalysisCSVImport/HeuristicLab.Problems.DataAnalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysisCSVImport/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
-
branches/DataAnalysisCSVImport/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/HoeffdingsDependenceCalculator.cs
r8542 r8842 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Data; 25 26 26 27 namespace HeuristicLab.Problems.DataAnalysis { 27 public class HoeffdingsDependenceCalculator {28 public class HoeffdingsDependenceCalculator : IDependencyCalculator { 28 29 29 public static double Calculate(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) { 30 public DoubleRange Interval { get { return new DoubleRange(1.0, -0.5); } } 31 32 public string Name { get { return "Hoeffdings Dependence"; } } 33 34 public double Calculate(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) { 35 return HoeffdingsDependenceCalculator.CalculateHoeffdings(originalValues, estimatedValues, out errorState); 36 } 37 38 public static double CalculateHoeffdings(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) { 30 39 double d = HoeffD(originalValues, estimatedValues, out errorState); 31 40 if (errorState != OnlineCalculatorError.None) return double.NaN;
Note: See TracChangeset
for help on using the changeset viewer.