Changeset 719
- Timestamp:
- 11/07/08 16:41:02 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Random
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Random/NormalRandomAdder.cs
r469 r719 67 67 MersenneTwister mt = GetVariableValue<MersenneTwister>("Random", scope, true); 68 68 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; 71 71 NormalDistributedRandom normal = new NormalDistributedRandom(mt, mu, sigma * factor); 72 72 -
trunk/sources/HeuristicLab.Random/NormalRandomizer.cs
r469 r719 60 60 IObjectData value = GetVariableValue<IObjectData>("Value", scope, false); 61 61 MersenneTwister mt = GetVariableValue<MersenneTwister>("Random", scope, true); 62 double mu = GetVariableValue<DoubleData>("Mu", null, false).Data;63 double sigma = GetVariableValue<DoubleData>("Sigma", null, false).Data;62 double mu = GetVariableValue<DoubleData>("Mu", scope, true).Data; 63 double sigma = GetVariableValue<DoubleData>("Sigma", scope, true).Data; 64 64 NormalDistributedRandom normal = new NormalDistributedRandom(mt, mu, sigma); 65 65 -
trunk/sources/HeuristicLab.Random/UniformRandomAdder.cs
r469 r719 58 58 MersenneTwister mt = GetVariableValue<MersenneTwister>("Random", scope, true); 59 59 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; 62 62 63 63 double ex = (max - min) / 2.0 + min; -
trunk/sources/HeuristicLab.Random/UniformRandomizer.cs
r469 r719 58 58 IObjectData value = GetVariableValue<IObjectData>("Value", scope, false); 59 59 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; 62 62 63 63 value.Accept(new RandomVisitor(mt, min, max));
Note: See TracChangeset
for help on using the changeset viewer.