Free cookie consent management tool by TermsFeed Policy Generator

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

#1508: Minor code cleanup in trading plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.