Class FloatSteppedSetter

java.lang.Object
repast.simphony.parameter.FloatSteppedSetter
All Implemented Interfaces:
OptimizableParameterSetter, ParameterSetter

public class FloatSteppedSetter extends Object implements OptimizableParameterSetter
This ParameterSetter will run through a space of numbers. The space is from the given base value through the given maximum value (including both: [base, max]). This space is traversed using the given step value.
Author:
Jerry Vos
  • Constructor Details

    • FloatSteppedSetter

      public FloatSteppedSetter(String parameterName, float base, float max, float step)
      Constructs this with the given base value, step size, and maximum value. This is guaranteed to produce Math.rint((max - base) / step) number of steps.
      Parameters:
      parameterName - the name of the parameter
      base - the beginning value
      max - the maximum value (inclusive)
      step - the step size
  • Method Details