Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/12 16:46:35 (12 years ago)
Author:
gkronber
Message:

#1847: merged r8084:8205 from trunk into GP move operators branch

Location:
branches/GP-MoveOperators
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators

  • branches/GP-MoveOperators/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/ReplaceBranchMove.cs

    r8083 r8206  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
     24using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2425using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2526
    26 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
     27namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
    2728  [Item("ReplaceBranchMove", "")]
    2829  [StorableClass]
     
    4142    public ISymbolicExpressionTreeNode NewBranch { get; set; }
    4243
     44    [Storable]
     45    public double[] OriginalOutput { get; private set; }
     46
     47    [Storable]
     48    public double[] NewOutput { get; private set; }
     49
     50    [Storable]
     51    public double Alpha { get; set; }
     52
     53    [Storable]
     54    public double Beta { get; set; }
     55
    4356
    4457    [StorableConstructor]
     
    5063      this.Parent = cloner.Clone(original.Parent);
    5164      this.NewBranch = cloner.Clone(original.NewBranch);
     65      this.OriginalOutput = original.OriginalOutput;
     66      this.NewOutput = original.NewOutput;
     67      this.Alpha = original.Alpha;
     68      this.Beta = original.Beta;
    5269    }
    53     public ReplaceBranchMove(ISymbolicExpressionTree tree, ISymbolicExpressionTreeNode parent, int subtreeIndex, ISymbolicExpressionTreeNode newChild)
     70    public ReplaceBranchMove(ISymbolicExpressionTree tree, ISymbolicExpressionTreeNode parent, int subtreeIndex, ISymbolicExpressionTreeNode newChild, double[] originalOutput, double[] newOutput)
    5471      : base() {
    5572      this.Tree = tree;
     
    5774      this.Parent = parent;
    5875      this.NewBranch = newChild;
     76      this.OriginalOutput = originalOutput;
     77      this.NewOutput = newOutput;
    5978    }
    6079
Note: See TracChangeset for help on using the changeset viewer.