Class StepsAttribute

java.lang.Object
org.moeaframework.analysis.plot.style.ValueAttribute<Integer>
org.moeaframework.analysis.plot.style.StepsAttribute
All Implemented Interfaces:
PlotAttribute

public class StepsAttribute extends ValueAttribute<Integer>
Defines the number of steps used when rendering histogram or deviation plots. That is, when aggregating the data, the width of each step is (xMax - xMin) / steps.
  • Field Details

    • DEFAULT_VALUE

      public static final StepsAttribute DEFAULT_VALUE
      The default value.
  • Constructor Details

    • StepsAttribute

      public StepsAttribute(int steps)
      Constructs a new step attribute.
      Parameters:
      steps - the number of steps
  • Method Details

    • of

      public static StepsAttribute of(int steps)
      Returns an attribute defining the number of steps used when rendering histogram or deviation plots.
      Parameters:
      steps - the number of steps
      Returns:
      the resulting attribute