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/VariableVectorManipulator.cs

    r9204 r9475  
    4242      get { return (ILookupParameter<VariableVectorInput>)Parameters["Input"]; }
    4343    }
     44    public IValueLookupParameter<IVariableVectorClassificationProblemData> ProblemDataParameter {
     45      get { return (IValueLookupParameter<IVariableVectorClassificationProblemData>)Parameters["ProblemData"]; }
     46    }
    4447    #endregion
    4548
     
    5457      Parameters.Add(new LookupParameter<VariableVector>("Child"));
    5558      Parameters.Add(new LookupParameter<VariableVectorInput>("Input"));
     59      Parameters.Add(new ValueLookupParameter<IVariableVectorClassificationProblemData>("ProblemData", ""));
    5660    }
    5761
    5862    public sealed override IOperation Apply() {
    59       ChildParameter.ActualValue = Manipulate(RandomParameter.ActualValue, FetchedInputParameter.ActualValue, ChildParameter.ActualValue);
     63      ChildParameter.ActualValue = Manipulate(RandomParameter.ActualValue, FetchedInputParameter.ActualValue, ChildParameter.ActualValue, ProblemDataParameter.ActualValue.SpreadPercentageParameter.Value.Value);
    6064      return base.Apply();
    6165    }
    6266
    63     protected abstract VariableVector Manipulate(IRandom random, VariableVectorInput input, VariableVector child);
     67    protected abstract VariableVector Manipulate(IRandom random, VariableVectorInput input, VariableVector child, double spreadPercentage);
    6468  }
    6569}
Note: See TracChangeset for help on using the changeset viewer.