Changeset 3182 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorManipulator.cs
- Timestamp:
- 03/22/10 17:03:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorManipulator.cs
r3060 r3182 44 44 get { return (ILookupParameter<RealVector>)Parameters["RealVector"]; } 45 45 } 46 public IValueLookupParameter<DoubleMatrix> BoundsParameter { 47 get { return (IValueLookupParameter<DoubleMatrix>)Parameters["Bounds"]; } 48 } 46 49 47 50 protected RealVectorManipulator() … … 49 52 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 50 53 Parameters.Add(new LookupParameter<RealVector>("RealVector", "The vector which should be manipulated.")); 54 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "The lower and upper bounds of the real vector.")); 51 55 } 52 56 53 57 public sealed override IOperation Apply() { 54 Manipulate(RandomParameter.ActualValue, RealVectorParameter.ActualValue); 58 RealVector vector = RealVectorParameter.ActualValue; 59 Manipulate(RandomParameter.ActualValue, vector); 60 DoubleMatrix bounds = BoundsParameter.ActualValue; 61 if (bounds != null) BoundsChecker.Apply(vector, bounds); 55 62 return base.Apply(); 56 63 }
Note: See TracChangeset
for help on using the changeset viewer.