Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/13/12 16:18:37 (12 years ago)
Author:
mkommend
Message:

#1081:

  • Added autoregressive target variable Symbol
  • Merged trunk changes into the branch.
File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/AutoregressiveVariable.cs

    r8475 r8477  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
    24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2524using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2625namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    2726  [StorableClass]
    2827  [Item("LaggedVariable", "Represents a variable value with a time offset.")]
    29   public sealed class LaggedVariable : Variable {
    30     [Storable]
    31     private int minLag;
    32     public int MinLag {
    33       get { return minLag; }
    34       set { minLag = value; }
     28  public sealed class AutoregressiveTargetVariable : LaggedVariable {
     29    [StorableConstructor]
     30    private AutoregressiveTargetVariable(bool deserializing) : base(deserializing) { }
     31    private AutoregressiveTargetVariable(AutoregressiveTargetVariable original, Cloner cloner)
     32      : base(original, cloner) {
    3533    }
    36     [Storable]
    37     private int maxLag;
    38     public int MaxLag {
    39       get { return maxLag; }
    40       set { maxLag = value; }
    41     }
    42     [StorableConstructor]
    43     private LaggedVariable(bool deserializing) : base(deserializing) { }
    44     private LaggedVariable(LaggedVariable original, Cloner cloner)
    45       : base(original, cloner) {
    46       minLag = original.minLag;
    47       maxLag = original.maxLag;
    48     }
    49     public LaggedVariable()
    50       : base("LaggedVariable", "Represents a variable value with a time offset.") {
    51       minLag = -1; maxLag = -1;
    52     }
    53 
    54     public override ISymbolicExpressionTreeNode CreateTreeNode() {
    55       return new LaggedVariableTreeNode(this);
    56     }
    57 
     34    public AutoregressiveTargetVariable() : base("Autoregressive Target Variable", "Represents the target variable with a time offset.") { }
    5835    public override IDeepCloneable Clone(Cloner cloner) {
    59       return new LaggedVariable(this, cloner);
     36      return new AutoregressiveTargetVariable(this, cloner);
    6037    }
    6138  }
Note: See TracChangeset for help on using the changeset viewer.