Changeset 801 for trunk/sources/HeuristicLab.Operators/StochasticBranch.cs
- Timestamp:
- 11/21/08 09:48:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/StochasticBranch.cs
r2 r801 27 27 28 28 namespace HeuristicLab.Operators { 29 /// <summary> 30 /// Branch of (one or) two operators that have different probabilities to get executed. 31 /// </summary> 29 32 public class StochasticBranch : OperatorBase { 33 /// <inheritdoc select="summary"/> 30 34 public override string Description { 31 35 get { return @"TODO\r\nOperator description still missing ..."; } 32 36 } 33 37 38 /// <summary> 39 /// Initializes a new instance of <see cref="StochasticBranch"/> with two variable infos 40 /// (<c>Random</c> and <c>Probability</c>). 41 /// </summary> 34 42 public StochasticBranch() 35 43 : base() { … … 38 46 } 39 47 48 /// <summary> 49 /// Applies the operator of branch one with a specific probability on the given 50 /// <paramref name="scope"/>, or - if existent - with another probability operator of branch two. 51 /// </summary> 52 /// <param name="scope">The scope to apply the operators on.</param> 53 /// <returns>A new <see cref="AtomicOperation"/> with either operator 1 or operator 2 applied 54 /// to the given <paramref name="scope"/> or <c>null</c>.</returns> 40 55 public override IOperation Apply(IScope scope) { 41 56 IRandom random = GetVariableValue<IRandom>("Random", scope, true);
Note: See TracChangeset
for help on using the changeset viewer.