Changeset 9928 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading
- Timestamp:
- 09/03/13 12:47:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Solution.cs
r9745 r9928 80 80 } 81 81 82 83 protected override void OnModelChanged() {84 base.OnModelChanged();85 RecalculateResults();86 }87 88 protected override void OnProblemDataChanged() {89 base.OnProblemDataChanged();90 RecalculateResults();91 }92 93 82 protected override void RecalculateResults() { 94 83 CalculateTradingResults(); … … 115 104 116 105 public virtual IEnumerable<double> Signals { 117 get { 118 return GetSignals(Enumerable.Range(0, ProblemData.Dataset.Rows)); 119 } 106 get { return GetSignals(Enumerable.Range(0, ProblemData.Dataset.Rows)); } 120 107 } 121 122 108 public virtual IEnumerable<double> TrainingSignals { 123 get { 124 return GetSignals(ProblemData.TrainingIndices); 125 } 109 get { return GetSignals(ProblemData.TrainingIndices); } 126 110 } 127 128 111 public virtual IEnumerable<double> TestSignals { 129 get { 130 return GetSignals(ProblemData.TestIndices); 131 } 112 get { return GetSignals(ProblemData.TestIndices); } 132 113 } 133 134 114 public virtual IEnumerable<double> GetSignals(IEnumerable<int> rows) { 135 115 return Model.GetSignals(ProblemData.Dataset, rows);
Note: See TracChangeset
for help on using the changeset viewer.