Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/07/08 16:41:02 (16 years ago)
Author:
abeham
Message:

[TICKET #341] Changed HeuristicLab.Random operators to also take min/max, mu/sigma from scope

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Random/UniformRandomizer.cs

    r469 r719  
    5858      IObjectData value = GetVariableValue<IObjectData>("Value", scope, false);
    5959      MersenneTwister mt = GetVariableValue<MersenneTwister>("Random", scope, true);
    60       double min = GetVariableValue<DoubleData>("Min", null, false).Data;
    61       double max = GetVariableValue<DoubleData>("Max", null, false).Data;
     60      double min = GetVariableValue<DoubleData>("Min", scope, true).Data;
     61      double max = GetVariableValue<DoubleData>("Max", scope, true).Data;
    6262
    6363      value.Accept(new RandomVisitor(mt, min, max));
Note: See TracChangeset for help on using the changeset viewer.