Changeset 9226 for branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Manipulator
- Timestamp:
- 02/18/13 16:51:42 (12 years ago)
- Location:
- branches/LearningClassifierSystems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems
- Property svn:ignore
-
old new 1 1 *.suo 2 bin
-
- Property svn:ignore
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Manipulator/UniformOnePositionInConditionManipulator.cs
r9204 r9226 56 56 var keyEnumerator = condition.Order.GetEnumerator(); 57 57 int count = 0; 58 while (keyEnumerator.MoveNext() && count < condition.VirtualLength59 && count < index && count + condition[keyEnumerator.Current].VirtualLength <index) {58 keyEnumerator.MoveNext(); 59 while (count < condition.VirtualLength && count < index && count + condition[keyEnumerator.Current].VirtualLength <= index) { 60 60 count += condition[keyEnumerator.Current].VirtualLength; 61 keyEnumerator.MoveNext(); 61 62 } 62 condition[keyEnumerator.Current].Manipulate(random, input[keyEnumerator.Current] .Value, index - count - 1);63 condition[keyEnumerator.Current].Manipulate(random, input[keyEnumerator.Current], index - count); 63 64 return child; 64 65 }
Note: See TracChangeset
for help on using the changeset viewer.