- Timestamp:
- 09/23/16 12:55:16 (8 years ago)
- Location:
- stable
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14226,14292
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis merged: 14226,14292
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Calculators/OnlineSharpeRatioCalculator.cs
r14186 r14303 31 31 public double SharpeRatio { 32 32 get { 33 if (meanAndVarianceCalculator. Variance > 0)34 return meanAndVarianceCalculator.Mean / Math.Sqrt(meanAndVarianceCalculator. Variance);33 if (meanAndVarianceCalculator.PopulationVariance > 0) 34 return meanAndVarianceCalculator.Mean / Math.Sqrt(meanAndVarianceCalculator.PopulationVariance); 35 35 else return 0.0; 36 36 } … … 46 46 public OnlineCalculatorError ErrorState { 47 47 get { 48 return meanAndVarianceCalculator.MeanErrorState | meanAndVarianceCalculator. VarianceErrorState | profitCalculator.ErrorState;48 return meanAndVarianceCalculator.MeanErrorState | meanAndVarianceCalculator.PopulationVarianceErrorState | profitCalculator.ErrorState; 49 49 } 50 50 } -
stable/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineMeanAndVarianceCalculator.cs
r14186 r14303 75 75 if (double.IsNaN(x) || double.IsInfinity(x) || x > 1E13 || x < -1E13 || (errorState & OnlineCalculatorError.InvalidValueAdded) > 0) { 76 76 errorState = errorState | OnlineCalculatorError.InvalidValueAdded; 77 varianceErrorState = errorState | OnlineCalculatorError.InvalidValueAdded;77 varianceErrorState = varianceErrorState | OnlineCalculatorError.InvalidValueAdded; 78 78 } else { 79 79 n++; -
stable/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineNormalizedMeanSquaredErrorCalculator.cs
r14186 r14303 30 30 public double NormalizedMeanSquaredError { 31 31 get { 32 double var = originalVarianceCalculator. Variance;32 double var = originalVarianceCalculator.PopulationVariance; 33 33 double m = meanSquaredErrorCalculator.Mean; 34 34 return var > 0 ? m / var : 0.0; … … 44 44 #region IOnlineCalculator Members 45 45 public OnlineCalculatorError ErrorState { 46 get { return meanSquaredErrorCalculator.MeanErrorState | originalVarianceCalculator. VarianceErrorState; }46 get { return meanSquaredErrorCalculator.MeanErrorState | originalVarianceCalculator.PopulationVarianceErrorState; } 47 47 } 48 48 public double Value {
Note: See TracChangeset
for help on using the changeset viewer.