Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/04/12 16:23:35 (12 years ago)
Author:
gkronber
Message:

#1847: bug fixes and improvements discussed with andreas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Moves/ChangeNodeTypeMoveAbsoluteAttribute.cs

    r7832 r8214  
    3131    public int[] Path { get; private set; }
    3232
     33    [Storable]
     34    public double[] PreviousOutput { get; private set; }
     35
     36    // for debugging
     37    [Storable]
     38    public double[] NewOutput { get; private set; }
     39
    3340    [StorableConstructor]
    3441    protected ChangeNodeTypeMoveAbsoluteAttribute(bool deserializing) : base(deserializing) { }
     
    3643      : base(original, cloner) {
    3744      this.Path = (int[])original.Path.Clone();
     45      this.PreviousOutput = original.PreviousOutput;
     46      this.NewOutput = original.NewOutput;
    3847    }
    39     public ChangeNodeTypeMoveAbsoluteAttribute(int[] path, double moveQuality)
     48    public ChangeNodeTypeMoveAbsoluteAttribute(int[] path, double moveQuality, double[] prevOutput, double[] newOutput)
    4049      : base(moveQuality) {
    4150      Path = path;
     51      PreviousOutput = prevOutput;
     52      NewOutput = newOutput;
    4253    }
    4354
Note: See TracChangeset for help on using the changeset viewer.