Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/11 15:03:46 (14 years ago)
Author:
gkronber
Message:

Merged changes from trunk to data analysis exploration branch and added fractional distance metric evaluator. #1142

Location:
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/Symbols
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/Symbols/DerivativeVariable.cs

    r4113 r5275  
    4747      set { maxLag = value; }
    4848    }
     49    [StorableConstructor]
     50    protected DerivativeVariable(bool deserializing) : base(deserializing) { }
     51    protected DerivativeVariable(DerivativeVariable original, Cloner cloner)
     52      : base(original, cloner) {
     53        minLag = original.minLag;
     54        maxLag = original.maxLag;
     55    }
    4956    public DerivativeVariable()
    5057      : base("DerivativeVariable", "Represents an differentiated variable value with a time offset.") {
     
    5764
    5865    public override IDeepCloneable Clone(Cloner cloner) {
    59       DerivativeVariable clone = (DerivativeVariable)base.Clone(cloner);
    60       clone.minLag = minLag;
    61       clone.maxLag = maxLag;
    62       return clone;
     66      return new DerivativeVariable(this, cloner);
    6367    }
    6468  }
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/Symbols/DerivativeVariableTreeNode.cs

    r4113 r5275  
    4444    private DerivativeVariableTreeNode() { }
    4545
    46     // copy constructor
    47     private DerivativeVariableTreeNode(DerivativeVariableTreeNode original)
    48       : base(original) {
    49       lag = original.lag;
     46    [StorableConstructor]
     47    protected DerivativeVariableTreeNode(bool deserializing) : base(deserializing) { }
     48    protected DerivativeVariableTreeNode(DerivativeVariableTreeNode original, Cloner cloner)
     49      : base(original, cloner) {
     50        lag = original.lag;
    5051    }
    5152
     
    6970
    7071
    71     public override object Clone() {
    72       return new DerivativeVariableTreeNode(this);
     72    public override IDeepCloneable Clone(Cloner cloner) {
     73      return new DerivativeVariableTreeNode(this, cloner);
    7374    }
    7475
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/Symbols/IntegratedVariable.cs

    r4113 r5275  
    4747      set { maxLag = value; }
    4848    }
     49    [StorableConstructor]
     50    protected IntegratedVariable(bool deserializing) : base(deserializing) { }
     51    protected IntegratedVariable(IntegratedVariable original, Cloner cloner)
     52      : base(original, cloner) {
     53        minLag = original.minLag;
     54        maxLag = original.maxLag;
     55    }
    4956    public IntegratedVariable()
    5057      : base("IntegratedVariable", "Represents an integrated variable value with a time offset.") {
     
    5764
    5865    public override IDeepCloneable Clone(Cloner cloner) {
    59       IntegratedVariable clone = (IntegratedVariable)base.Clone(cloner);
    60       clone.minLag = minLag;
    61       clone.maxLag = maxLag;
    62       return clone;
     66      return new IntegratedVariable(this, cloner);
    6367    }
    6468  }
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/Symbols/IntegratedVariableTreeNode.cs

    r4113 r5275  
    5050
    5151    private IntegratedVariableTreeNode() { }
    52 
    53     // copy constructor
    54     private IntegratedVariableTreeNode(IntegratedVariableTreeNode original)
    55       : base(original) {
     52    [StorableConstructor]
     53    protected IntegratedVariableTreeNode(bool deserializing) : base(deserializing) { }
     54    protected IntegratedVariableTreeNode(IntegratedVariableTreeNode original, Cloner cloner)
     55      : base(original, cloner) {
    5656      minTimeOffset = original.minTimeOffset;
    5757      maxTimeOffset = original.maxTimeOffset;
     
    7777      maxTimeOffset = Math.Min(Symbol.MaxLag, Math.Max(minTimeOffset, maxTimeOffset + random.Next(-1, 2)));
    7878    }
    79 
    80 
    81     public override object Clone() {
    82       return new IntegratedVariableTreeNode(this);
     79    public override IDeepCloneable Clone(Cloner cloner) {
     80      return new IntegratedVariableTreeNode(this, cloner);
    8381    }
    84 
    8582    public override string ToString() {
    8683      return Weight.ToString("E4") + " I(" + VariableName +
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/Symbols/MovingAverage.cs

    r4113 r5275  
    4747      set { maxLag = value; }
    4848    }
     49    [StorableConstructor]
     50    protected MovingAverage(bool deserializing) : base(deserializing) { }
     51    protected MovingAverage(MovingAverage original, Cloner cloner)
     52      : base(original, cloner) {
     53      minLag = original.minLag;
     54      maxLag = original.maxLag;
     55    }
    4956    public MovingAverage()
    5057      : base("MovingAverage", "Represents a moving average of a variable value with a time offset.") {
     
    5764
    5865    public override IDeepCloneable Clone(Cloner cloner) {
    59       MovingAverage clone = (MovingAverage)base.Clone(cloner);
    60       clone.minLag = minLag;
    61       clone.maxLag = maxLag;
    62       return clone;
     66      return new MovingAverage(this, cloner);
    6367    }
    6468  }
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/Symbols/MovingAverageTreeNode.cs

    r4113 r5275  
    5050
    5151    private MovingAverageTreeNode() { }
    52 
    53     // copy constructor
    54     private MovingAverageTreeNode(MovingAverageTreeNode original)
    55       : base(original) {
     52    [StorableConstructor]
     53    protected MovingAverageTreeNode(bool deserializing) : base(deserializing) { }
     54    protected MovingAverageTreeNode(MovingAverageTreeNode original, Cloner cloner)
     55      : base(original, cloner) {
    5656      minTimeOffset = original.minTimeOffset;
    5757      maxTimeOffset = original.maxTimeOffset;
     
    7979
    8080
    81     public override object Clone() {
    82       return new MovingAverageTreeNode(this);
     81    public override IDeepCloneable Clone(Cloner cloner) {
     82      return new MovingAverageTreeNode(this, cloner);
    8383    }
    84 
    8584    public override string ToString() {
    8685      return Weight.ToString("E4") + " MA(" + VariableName +
Note: See TracChangeset for help on using the changeset viewer.