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

    r469 r719  
    6767      MersenneTwister mt = GetVariableValue<MersenneTwister>("Random", scope, true);
    6868      double factor = GetVariableValue<DoubleData>("ShakingFactor", scope, true).Data;
    69       double mu = GetVariableValue<DoubleData>("Mu", null, false).Data;
    70       double sigma = GetVariableValue<DoubleData>("Sigma", null, false).Data;
     69      double mu = GetVariableValue<DoubleData>("Mu", scope, true).Data;
     70      double sigma = GetVariableValue<DoubleData>("Sigma", scope, true).Data;
    7171      NormalDistributedRandom normal = new NormalDistributedRandom(mt, mu, sigma * factor);
    7272
Note: See TracChangeset for help on using the changeset viewer.