Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/10 14:27:06 (14 years ago)
Author:
gkronber
Message:

Implemented manipulation operators. #937 (Data types and operators for symbolic expression tree encoding)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs

    r3485 r3512  
    2828using HeuristicLab.Parameters;
    2929using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
     30using System;
    3031namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols {
    3132  [StorableClass]
     
    4546      set { maxValue = value; }
    4647    }
     48    [Storable]
     49    private double manipulatorNu;
     50    public double ManipulatorNu {
     51      get { return manipulatorNu; }
     52      set { manipulatorNu = value; }
     53    }
     54    [Storable]
     55    private double manipulatorSigma;
     56    public double ManipulatorSigma {
     57      get { return manipulatorSigma; }
     58      set {
     59        if (value < 0) throw new ArgumentException();
     60        manipulatorSigma = value;
     61      }
     62    }
    4763    #endregion
    4864    public Constant()
    4965      : base() {
     66      manipulatorNu = 0.0;
     67      manipulatorSigma = 1.0;
     68      minValue = -20.0;
     69      maxValue = 20.0;
    5070    }
    5171
     
    5575
    5676    public override IDeepCloneable Clone(Cloner cloner) {
    57       Constant clone = (Constant) base.Clone(cloner);
     77      Constant clone = (Constant)base.Clone(cloner);
    5878      clone.minValue = minValue;
    5979      clone.maxValue = maxValue;
     80      clone.manipulatorNu = manipulatorNu;
     81      clone.manipulatorSigma = manipulatorSigma;
    6082      return clone;
    6183    }
Note: See TracChangeset for help on using the changeset viewer.