Changeset 8477 for branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/AutoregressiveVariable.cs
- Timestamp:
- 08/13/12 16:18:37 (12 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/AutoregressiveVariable.cs
r8475 r8477 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 25 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 27 26 [StorableClass] 28 27 [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) { 35 33 } 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.") { } 58 35 public override IDeepCloneable Clone(Cloner cloner) { 59 return new LaggedVariable(this, cloner);36 return new AutoregressiveTargetVariable(this, cloner); 60 37 } 61 38 }
Note: See TracChangeset
for help on using the changeset viewer.