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/UniformRandomAdder.cs

    r469 r719  
    5858      MersenneTwister mt = GetVariableValue<MersenneTwister>("Random", scope, true);
    5959      double factor = GetVariableValue<DoubleData>("ShakingFactor", scope, true).Data;
    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      double ex = (max - min) / 2.0 + min;
Note: See TracChangeset for help on using the changeset viewer.