Changeset 14303 for stable/HeuristicLab.Problems.DataAnalysis.Trading
- Timestamp:
- 09/23/16 12:55:16 (8 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources 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 }
Note: See TracChangeset
for help on using the changeset viewer.