Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (15 years ago)
Author:
swagner
Message:

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.IntVector/3.3/Manipulators/UniformOnePositionManipulator.cs

    r3032 r3048  
    4242    /// The lower bound of the values in the int vector.
    4343    /// </summary>
    44     public ValueLookupParameter<IntData> MinimumParameter {
    45       get { return (ValueLookupParameter<IntData>)Parameters["Minimum"]; }
     44    public ValueLookupParameter<IntValue> MinimumParameter {
     45      get { return (ValueLookupParameter<IntValue>)Parameters["Minimum"]; }
    4646    }
    4747    /// <summary>
    4848    /// The upper bound of the values in the int vector.
    4949    /// </summary>
    50     public ValueLookupParameter<IntData> MaximumParameter {
    51       get { return (ValueLookupParameter<IntData>)Parameters["Maximum"]; }
     50    public ValueLookupParameter<IntValue> MaximumParameter {
     51      get { return (ValueLookupParameter<IntValue>)Parameters["Maximum"]; }
    5252    }
    5353
     
    5757    /// </summary>
    5858    public UniformOnePositionManipulator() {
    59       Parameters.Add(new ValueLookupParameter<IntData>("Minimum", "Minimum of the sampling range for the vector element (included)"));
    60       Parameters.Add(new ValueLookupParameter<IntData>("Maximum", "Maximum of the sampling range for the vector element (excluded)"));
     59      Parameters.Add(new ValueLookupParameter<IntValue>("Minimum", "Minimum of the sampling range for the vector element (included)"));
     60      Parameters.Add(new ValueLookupParameter<IntValue>("Maximum", "Maximum of the sampling range for the vector element (excluded)"));
    6161    }
    6262
     
    7070    /// <param name="max">The maximum value of the sampling range for
    7171    /// the vector element to change (exclusive).</param>
    72     public static void Apply(IRandom random, IntArrayData vector, IntData min, IntData max) {
     72    public static void Apply(IRandom random, IntArray vector, IntValue min, IntValue max) {
    7373      int index = random.Next(vector.Length);
    7474      vector[index] = random.Next(min.Value, max.Value);
     
    8181    /// <param name="random">A random number generator.</param>
    8282    /// <param name="vector">The integer vector to manipulate.</param>
    83     protected override void Manipulate(IRandom random, IntArrayData vector) {
     83    protected override void Manipulate(IRandom random, IntArray vector) {
    8484      if (MinimumParameter.ActualValue == null) throw new InvalidOperationException("UniformOnePositionManipulator: Parameter " + MinimumParameter.ActualName + " could not be found.");
    8585      if (MaximumParameter.ActualValue == null) throw new InvalidOperationException("UniformOnePositionManipulator: Parameter " + MaximumParameter.ActualName + " could not be found.");
Note: See TracChangeset for help on using the changeset viewer.