Ignore:
Timestamp:
05/09/13 18:57:22 (8 years ago)
Author:
sforsten
Message:

#1980: several small bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Manipulator/UniformOnePositionInConditionManipulator.cs

    r9392 r9475  
    4545    }
    4646
    47     protected override VariableVector Manipulate(IRandom random, VariableVectorInput input, VariableVector child) {
    48       return Manipulate(random, input, child, random.Next(child.Condition.VirtualLength));
     47    protected override VariableVector Manipulate(IRandom random, VariableVectorInput input, VariableVector child, double spreadPercentage) {
     48      return Manipulate(random, input, child, random.Next(child.Condition.VirtualLength), spreadPercentage);
    4949    }
    5050
    51     public static VariableVector Manipulate(IRandom random, VariableVectorInput input, VariableVector child, int index) {
     51    public static VariableVector Manipulate(IRandom random, VariableVectorInput input, VariableVector child, int index, double spreadPercentage) {
    5252      VariableVectorCondition condition = child.Condition;
    5353      if (index >= condition.VirtualLength) {
     
    6161        keyEnumerator.MoveNext();
    6262      }
    63       condition.VariableDictionary[keyEnumerator.Current].Manipulate(random, input.InputDictionary[keyEnumerator.Current], index - count);
     63      condition.VariableDictionary[keyEnumerator.Current].Manipulate(random, input.InputDictionary[keyEnumerator.Current], index - count, spreadPercentage);
    6464      return child;
    6565    }
Note: See TracChangeset for help on using the changeset viewer.