Changeset 5177 for branches/ParallelEngine/HeuristicLab.Random
- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- Location:
- branches/ParallelEngine/HeuristicLab.Random/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Random/3.3/NormalRandomizer.cs
r4722 r5177 81 81 /// Generates a new normally distributed random variable and assigns it to the specified variable. 82 82 /// </summary> 83 public override IOperation Apply( ) {83 public override IOperation Apply(IExecutionContext context) { 84 84 IRandom random = RandomParameter.ActualValue; 85 85 double mu = MuParameter.ActualValue.Value; -
branches/ParallelEngine/HeuristicLab.Random/3.3/RandomCreator.cs
r4722 r5177 88 88 } 89 89 90 public override IOperation Apply( ) {90 public override IOperation Apply(IExecutionContext context) { 91 91 if (SetSeedRandomlyParameter.ActualValue == null) SetSeedRandomlyParameter.ActualValue = new BoolValue(true); 92 92 bool setSeedRandomly = SetSeedRandomlyParameter.ActualValue.Value; … … 99 99 RandomParameter.ActualValue = random; 100 100 101 return base.Apply( );101 return base.Apply(context); 102 102 } 103 103 } -
branches/ParallelEngine/HeuristicLab.Random/3.3/UniformRandomizer.cs
r4722 r5177 83 83 /// Generates a new uniformly distributed random variable. 84 84 /// </summary> 85 public override IOperation Apply( ) {85 public override IOperation Apply(IExecutionContext context) { 86 86 IRandom random = RandomParameter.ActualValue; 87 87 double min = MinParameter.ActualValue.Value;
Note: See TracChangeset
for help on using the changeset viewer.