Changeset 5894 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlinePearsonsRSquaredEvaluator.cs
- Timestamp:
- 03/30/11 18:04:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlinePearsonsRSquaredEvaluator.cs
r5809 r5894 46 46 47 47 #region IOnlineEvaluator Members 48 public OnlineEvaluatorError ErrorState { 49 get { return covEvaluator.ErrorState | sxEvaluator.PopulationVarianceErrorState | syEvaluator.PopulationVarianceErrorState; } 50 } 48 51 public double Value { 49 52 get { return RSquared; } … … 64 67 #endregion 65 68 66 public static double Calculate(IEnumerable<double> first, IEnumerable<double> second ) {69 public static double Calculate(IEnumerable<double> first, IEnumerable<double> second, out OnlineEvaluatorError errorState) { 67 70 IEnumerator<double> firstEnumerator = first.GetEnumerator(); 68 71 IEnumerator<double> secondEnumerator = second.GetEnumerator(); … … 80 83 throw new ArgumentException("Number of elements in first and second enumeration doesn't match."); 81 84 } else { 85 errorState = rSquaredEvaluator.ErrorState; 82 86 return rSquaredEvaluator.RSquared; 83 87 }
Note: See TracChangeset
for help on using the changeset viewer.