Free cookie consent management tool by TermsFeed Policy Generator

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

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

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

    r3017 r3048  
    3939    /// The lower bound of the values in the real vector.
    4040    /// </summary>
    41     public ValueLookupParameter<DoubleData> MinimumParameter {
    42       get { return (ValueLookupParameter<DoubleData>)Parameters["Minimum"]; }
     41    public ValueLookupParameter<DoubleValue> MinimumParameter {
     42      get { return (ValueLookupParameter<DoubleValue>)Parameters["Minimum"]; }
    4343    }
    4444    /// <summary>
    4545    /// The upper bound of the values in the real vector.
    4646    /// </summary>
    47     public ValueLookupParameter<DoubleData> MaximumParameter {
    48       get { return (ValueLookupParameter<DoubleData>)Parameters["Maximum"]; }
     47    public ValueLookupParameter<DoubleValue> MaximumParameter {
     48      get { return (ValueLookupParameter<DoubleValue>)Parameters["Maximum"]; }
    4949    }
    5050
     
    5454    /// </summary>
    5555    public UniformOnePositionManipulator() {
    56       Parameters.Add(new ValueLookupParameter<DoubleData>("Minimum", "Minimum of the sampling range for the vector element (included)"));
    57       Parameters.Add(new ValueLookupParameter<DoubleData>("Maximum", "Maximum of the sampling range for the vector element (excluded)"));
     56      Parameters.Add(new ValueLookupParameter<DoubleValue>("Minimum", "Minimum of the sampling range for the vector element (included)"));
     57      Parameters.Add(new ValueLookupParameter<DoubleValue>("Maximum", "Maximum of the sampling range for the vector element (excluded)"));
    5858    }
    5959
     
    6767    /// <param name="max">The maximum value of the sampling range for
    6868    /// the vector element to change (exclusive).</param>
    69     public static void Apply(IRandom random, DoubleArrayData vector, DoubleData min, DoubleData max) {
     69    public static void Apply(IRandom random, DoubleArray vector, DoubleValue min, DoubleValue max) {
    7070      int index = random.Next(vector.Length);
    7171      vector[index] = min.Value + random.NextDouble() * (max.Value - min.Value);
     
    7373
    7474    /// <summary>
    75     /// Checks if the minimum and maximum parameters are available and forwards the call to <see cref="Apply(IRandom, DoubleArrayData, DoubleData, DoubleData)"/>.
     75    /// Checks if the minimum and maximum parameters are available and forwards the call to <see cref="Apply(IRandom, DoubleArray, DoubleValue, DoubleValue)"/>.
    7676    /// </summary>
    7777    /// <param name="random">The random number generator to use.</param>
    7878    /// <param name="realVector">The real vector to manipulate.</param>
    79     protected override void Manipulate(IRandom random, DoubleArrayData realVector) {
     79    protected override void Manipulate(IRandom random, DoubleArray realVector) {
    8080      if (MinimumParameter.ActualValue == null) throw new InvalidOperationException("UniformOnePositionManipulator: Parameter " + MinimumParameter.ActualName + " could not be found.");
    8181      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.