- Timestamp:
- 09/03/13 12:47:53 (11 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading.Views/3.4/SolutionView.cs
r9796 r9928 32 32 InitializeComponent(); 33 33 34 var regressionSolutionEvaluationViewTypes = ApplicationManager.Manager.GetTypes(typeof(ISolutionEvaluationView), true);35 foreach (Type viewType in regressionSolutionEvaluationViewTypes)34 var solutionEvaluationViewTypes = ApplicationManager.Manager.GetTypes(typeof(ISolutionEvaluationView)); 35 foreach (Type viewType in solutionEvaluationViewTypes) 36 36 AddViewListViewItem(viewType, HeuristicLab.Common.Resources.VSImageLibrary.Graph); 37 37 } -
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.