Changeset 9467 for branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Variable/StringVariable.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/StringVariable.cs
r9392 r9467 167 167 } 168 168 169 public override void Randomize(IRandom random) { 169 public void RandomizeAction(IRandom random) { 170 int index = random.Next(possibleFeatures.Count()); 171 currentValue = possibleFeatures.ElementAt(index); 172 } 173 174 public override void Randomize(IRandom random, double changeSymbolProbability) { 175 Wildcard = random.NextDouble() < changeSymbolProbability; 170 176 int index = random.Next(possibleFeatures.Count()); 171 177 currentValue = possibleFeatures.ElementAt(index);
Note: See TracChangeset
for help on using the changeset viewer.