Changeset 9467 for branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Creators/UniformRandomVariableVectorCreator.cs
- Timestamp:
- 05/08/13 14:12:00 (11 years ago)
- Location:
- branches/LearningClassifierSystems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems
-
Property
svn:mergeinfo
set to
/trunk/sources/HeuristicLab.Core merged eligible
-
Property
svn:mergeinfo
set to
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Creators/UniformRandomVariableVectorCreator.cs
r9226 r9467 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Data; 25 using HeuristicLab.Parameters; 24 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 27 … … 30 32 31 33 #region Parameter Properties 34 public ILookupParameter<PercentValue> ChangeSymbolProbabilityParameter { 35 get { return (ILookupParameter<PercentValue>)Parameters["ChangeSymbolProbability"]; } 36 } 32 37 #endregion 33 38 … … 39 44 public UniformRandomVariableVectorCreator() 40 45 : base() { 46 Parameters.Add(new LookupParameter<PercentValue>("ChangeSymbolProbability")); 41 47 } 42 48 public override IDeepCloneable Clone(Cloner cloner) { … … 46 52 protected override VariableVector Create(IRandom random, VariableVector sampleVariableVector, double spreadPercentage) { 47 53 var result = sampleVariableVector.GetEmptyCopy(); 48 result.Randomize(random, spreadPercentage);54 result.Randomize(random, ChangeSymbolProbabilityParameter.ActualValue.Value, spreadPercentage); 49 55 return result; 50 56 }
Note: See TracChangeset
for help on using the changeset viewer.