Changeset 8590 for branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/Operators/Manipulators/IntValue/NormalIntValueManipulator.cs
- Timestamp:
- 09/06/12 14:45:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/Operators/Manipulators/IntValue/NormalIntValueManipulator.cs
r8574 r8590 36 36 [StorableClass] 37 37 public class NormalIntValueManipulator : SingleSuccessorOperator, IIntValueManipulator, IStochasticOperator { 38 39 38 public ILookupParameter<IRandom> RandomParameter { 40 39 get { return (LookupParameter<IRandom>)Parameters["Random"]; } … … 59 58 public static void ApplyStatic(IRandom random, IntValue value, IntValueRange range) { 60 59 var strategy = new RealVector(new double[] { (range.UpperBound.Value - range.LowerBound.Value) / 10 }); 61 var vector = new RealVector( new double[] { value.Value });60 var vector = new RealVector(1); 62 61 int val = value.Value; 63 62
Note: See TracChangeset
for help on using the changeset viewer.