Changeset 9467 for branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Variable/DoubleVariable.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/Variable/DoubleVariable.cs
r9392 r9467 112 112 } 113 113 114 // Important! If this mehtod is called instead of the more concrete "Randomize(IRandom random, double spreadPercentage)" 115 // spread percentage is 50% 116 public override void Randomize(IRandom random) { 117 Randomize(random, 50); 114 // this method is not implemented on purpose, because it may lead to confusion or errors if the wrong parameter would be used (changeSymbolProbability instead of spreadPercentage) 115 public override void Randomize(IRandom random, double changeSymbolProbability) { 116 throw new NotImplementedException("The method DoubleVariable.Randomize(IRandom, double) should not be used. Use DoubleVariable.Randomize(IRandom, double, double) instead."); 118 117 } 119 118 120 public void Randomize(IRandom random, double spreadPercentage) { 119 // changeSymbolProbability is not used on purpose 120 public void Randomize(IRandom random, double changeSymbolProbability, double spreadPercentage) { 121 121 if (spreadPercentage < 0 || spreadPercentage > 100) { 122 122 throw new ArgumentException("Spread percentage has to be between 0 and 100.");
Note: See TracChangeset
for help on using the changeset viewer.