Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/LaggedSymbol.cs @ 5384

Last change on this file since 5384 was 5373, checked in by mkommend, 14 years ago

ticket #1256 - Merged new timeseries symbols from branch to trunk.

File size: 1.4 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
4using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
5using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
6
7namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols {
8  [StorableClass]
9  [Item("LaggedSymbol", "Represents a symblol whose evaluation is shifted.")]
10  public abstract class LaggedSymbol : Symbol {
11    [Storable]
12    private int minLag;
13    public virtual int MinLag {
14      get { return minLag; }
15      set { minLag = value; }
16    }
17    [Storable]
18    private int maxLag;
19    public virtual int MaxLag {
20      get { return maxLag; }
21      set { maxLag = value; }
22    }
23
24    [StorableConstructor]
25    protected LaggedSymbol(bool deserializing) : base(deserializing) { }
26    protected LaggedSymbol(LaggedSymbol original, Cloner cloner)
27      : base(original, cloner) {
28      minLag = original.minLag;
29      maxLag = original.maxLag;
30    }
31    protected LaggedSymbol()
32      : base("LaggedSymbol", "Represents a symbol whose evaluation is shifted.") {
33      minLag = -1; maxLag = -1;
34    }
35    protected LaggedSymbol(string name, string description)
36      : base(name, description) {
37      minLag = -1; maxLag = -1;
38    }
39
40    public override SymbolicExpressionTreeNode CreateTreeNode() {
41      return new LaggedTreeNode(this);
42    }
43  }
44}
Note: See TracBrowser for help on using the repository browser.