Last change
on this file since 5947 was
5373,
checked in by mkommend, 14 years ago
|
ticket #1256 - Merged new timeseries symbols from branch to trunk.
|
File size:
1.4 KB
|
Rev | Line | |
---|
[5026] | 1 | using HeuristicLab.Common;
|
---|
| 2 | using HeuristicLab.Core;
|
---|
| 3 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
| 4 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
|
---|
| 5 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
| 6 |
|
---|
| 7 | namespace 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.