Changeset 4252
- Timestamp:
- 08/18/10 15:11:52 (14 years ago)
- Location:
- branches/DataAnalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/SymbolicTimeSeriesPrognosisGrammar.cs
r4113 r4252 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;23 22 using System.Collections.Generic; 24 using System;25 using System.Linq;26 23 using HeuristicLab.Common; 27 24 using HeuristicLab.Core; 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols; 28 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols; 30 using HeuristicLab.Data; 28 using HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis.Symbolic.Symbols; 31 29 using HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols; 32 using HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis.Symbolic.Symbols;33 30 34 31 namespace HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis.Symbolic { … … 46 43 this.dimension = dimension; 47 44 Initialize(); 48 }49 50 protected SymbolicTimeSeriesPrognosisGrammar(SymbolicTimeSeriesPrognosisGrammar original)51 : base(original) {52 this.dimension = original.dimension;53 45 } 54 46 … … 140 132 141 133 public override IDeepCloneable Clone(Cloner cloner) { 142 return new SymbolicTimeSeriesPrognosisGrammar(this); 134 SymbolicTimeSeriesPrognosisGrammar clone = (SymbolicTimeSeriesPrognosisGrammar)base.Clone(cloner); 135 clone.dimension = this.dimension; 136 return clone; 143 137 } 144 138 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate/3.3/Symbolic/MultiVariateExpressionGrammar.cs
r4068 r4252 44 44 } 45 45 46 protected MultiVariateExpressionGrammar(MultiVariateExpressionGrammar original)47 : base(original) {48 this.dimension = original.dimension;49 }50 51 46 public void SetDimension(int n) { 52 47 dimension = n; … … 63 58 64 59 public override IDeepCloneable Clone(Cloner cloner) { 65 var clone = new MultiVariateExpressionGrammar(this);66 clone r.RegisterClonedObject(this, clone);60 MultiVariateExpressionGrammar clone = (MultiVariateExpressionGrammar)base.Clone(cloner); 61 clone.dimension = this.dimension; 67 62 return clone; 68 63 }
Note: See TracChangeset
for help on using the changeset viewer.