- Timestamp:
- 01/28/09 10:20:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.RealVector/RealVectorManipulatorBase.cs
r2 r1184 27 27 28 28 namespace HeuristicLab.RealVector { 29 /// <summary> 30 /// Base class for all real vector manipulators. 31 /// </summary> 29 32 public abstract class RealVectorManipulatorBase : OperatorBase { 33 /// <summary> 34 /// Initializes a new instance of <see cref="RealVectorManipulatorBase"/> with two variable infos 35 /// (<c>Random</c> and <c>RealVector</c>). 36 /// </summary> 30 37 public RealVectorManipulatorBase() { 31 38 AddVariableInfo(new VariableInfo("Random", "Pseudo random number generator", typeof(IRandom), VariableKind.In)); … … 33 40 } 34 41 42 /// <summary> 43 /// Manipulates the real vector. 44 /// </summary> 45 /// <param name="scope">The current scope whose real vector to manipulate.</param> 46 /// <returns><c>null</c>.</returns> 35 47 public override IOperation Apply(IScope scope) { 36 48 IRandom random = GetVariableValue<IRandom>("Random", scope, true); … … 40 52 } 41 53 54 /// <summary> 55 /// Manipulates the given real <paramref name="vector"/> with the given random number generator. 56 /// </summary> 57 /// <param name="scope">The current scope.</param> 58 /// <param name="random">A random number generator.</param> 59 /// <param name="vector">The real vector to manipulate.</param> 60 /// <returns>The manipulated real vector.</returns> 42 61 protected abstract double[] Manipulate(IScope scope, IRandom random, double[] vector); 43 62 }
Note: See TracChangeset
for help on using the changeset viewer.