Changeset 14226 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Calculators/OnlineSharpeRatioCalculator.cs
- Timestamp:
- 08/02/16 16:16:29 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Calculators/OnlineSharpeRatioCalculator.cs
r14185 r14226 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 }
Note: See TracChangeset
for help on using the changeset viewer.