Class MaxArrayFunction.Float

All Implemented Interfaces:
EventListener, IDoubleSource, IFloatSource, IUpdatableSource
Enclosing class:
MaxArrayFunction

public static class MaxArrayFunction.Float extends MaxArrayFunction implements IFloatSource
MaxFunction operating on float source values.
Author:
Michele Sonnessa and Ross Richardson
  • Field Details

    • fmax

      protected float fmax
  • Constructor Details

    • Float

      public Float(IFloatArraySource source)
      Create a maximum function on an float array source.
      Parameters:
      source - The data source.
  • Method Details

    • apply

      public void apply(float[] data)
      Description copied from class: AbstractArrayFunction
      Apply the function on a the given array of float values.
      Overrides:
      apply in class AbstractArrayFunction
      Parameters:
      data - A source array of values.
    • getFloatValue

      public float getFloatValue(Enum<?> id)
      Description copied from interface: IFloatSource
      Return the float value corresponding to the given variableID
      Specified by:
      getFloatValue in interface IFloatSource
      Parameters:
      id - A unique identifier for a variable.
      Returns:
      The current float value of the required variable.
    • getDoubleValue

      public double getDoubleValue(Enum<?> variableID)
      Description copied from interface: IDoubleSource
      Return the double value corresponding to the given variableID
      Specified by:
      getDoubleValue in interface IDoubleSource
      Parameters:
      variableID - A unique identifier for a variable.
      Returns:
      The current double value of the required variable.