Changeset 9928


Ignore:
Timestamp:
09/03/13 12:47:53 (6 years ago)
Author:
mkommend
Message:

#1508: Minor code cleanup in trading plugin.

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading.Views/3.4/SolutionView.cs

    r9796 r9928  
    3232      InitializeComponent();
    3333
    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)
    3636        AddViewListViewItem(viewType, HeuristicLab.Common.Resources.VSImageLibrary.Graph);
    3737    }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Solution.cs

    r9745 r9928  
    8080    }
    8181
    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 
    9382    protected override void RecalculateResults() {
    9483      CalculateTradingResults();
     
    115104
    116105    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)); }
    120107    }
    121 
    122108    public virtual IEnumerable<double> TrainingSignals {
    123       get {
    124         return GetSignals(ProblemData.TrainingIndices);
    125       }
     109      get { return GetSignals(ProblemData.TrainingIndices); }
    126110    }
    127 
    128111    public virtual IEnumerable<double> TestSignals {
    129       get {
    130         return GetSignals(ProblemData.TestIndices);
    131       }
     112      get { return GetSignals(ProblemData.TestIndices); }
    132113    }
    133 
    134114    public virtual IEnumerable<double> GetSignals(IEnumerable<int> rows) {
    135115      return Model.GetSignals(ProblemData.Dataset, rows);
Note: See TracChangeset for help on using the changeset viewer.