Changeset 9989 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Symbolic/SingleObjective
- Timestamp:
- 09/19/13 10:16:25 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Symbolic/SingleObjective
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Symbolic/SingleObjective/ProfitEvaluator.cs
r9825 r9989 59 59 public static double Calculate(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, ISymbolicExpressionTree solution, IProblemData problemData, IEnumerable<int> rows) { 60 60 IEnumerable<double> signals = GetSignals(interpreter, solution, problemData.Dataset, rows); 61 IEnumerable<double> returns = problemData.Dataset.GetDoubleValues(problemData.Price Variable, rows);61 IEnumerable<double> returns = problemData.Dataset.GetDoubleValues(problemData.PriceChangeVariable, rows); 62 62 OnlineCalculatorError errorState; 63 63 double profit = OnlineProfitCalculator.Calculate(returns, signals, problemData.TransactionCosts, out errorState); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Symbolic/SingleObjective/SharpeRatioEvaluator.cs
r9825 r9989 59 59 public static double Calculate(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, ISymbolicExpressionTree solution, IProblemData problemData, IEnumerable<int> rows) { 60 60 IEnumerable<double> signals = GetSignals(interpreter, solution, problemData.Dataset, rows); 61 IEnumerable<double> returns = problemData.Dataset.GetDoubleValues(problemData.Price Variable, rows);61 IEnumerable<double> returns = problemData.Dataset.GetDoubleValues(problemData.PriceChangeVariable, rows); 62 62 OnlineCalculatorError errorState; 63 63 double sharpRatio = OnlineSharpeRatioCalculator.Calculate(returns, signals, problemData.TransactionCosts, out errorState);
Note: See TracChangeset
for help on using the changeset viewer.