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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate/3.3/Symbolic/MultiVariateExpressionGrammar.cs

    r4252 r5275  
    3737    }
    3838
     39    [StorableConstructor]
     40    protected MultiVariateExpressionGrammar(bool deserializing) : base(deserializing) { }
     41    protected MultiVariateExpressionGrammar(MultiVariateExpressionGrammar original, Cloner cloner)
     42      : base(original, cloner) {
     43        dimension = original.dimension;
     44    }
    3945    public MultiVariateExpressionGrammar() : this(2) { }
    40 
    4146    public MultiVariateExpressionGrammar(int dimension)
    4247      : base() {
     
    5055
    5156      foreach (Symbol s in Symbols) {
    52         if (s != StartSymbol)
     57        if (s != StartSymbol) 
    5358          for (int i = 0; i < n; i++) {
    5459            SetAllowedChild(StartSymbol, s, i);
     
    5863
    5964    public override IDeepCloneable Clone(Cloner cloner) {
    60       MultiVariateExpressionGrammar clone = (MultiVariateExpressionGrammar)base.Clone(cloner);
    61       clone.dimension = this.dimension;
    62       return clone;
     65      return new MultiVariateExpressionGrammar(this, cloner);
    6366    }
    6467  }
Note: See TracChangeset for help on using the changeset viewer.