Class Weighted_SumArrayFunction.Float

All Implemented Interfaces:
EventListener, IDoubleSource, IUpdatableSource
Enclosing class:
Weighted_SumArrayFunction

public static class Weighted_SumArrayFunction.Float extends Weighted_SumArrayFunction
SumFunction operating on weighted float source values.
Author:
Michele Sonnessa and Ross Richardson
  • Field Details

    • fsum

      protected double fsum
  • Constructor Details

    • Float

      public Float(IWeightedFloatArraySource source)
      Create a sum function on a weighted float array source.
      Parameters:
      source - The data source.
  • Method Details

    • apply

      public void apply(float[] data, double[] weights)
      Description copied from class: AbstractWeightedArrayFunction
      Apply the function on a the given array of float values.
      Overrides:
      apply in class AbstractWeightedArrayFunction
      Parameters:
      data - A source array of values.
      weights - An array of weights.
    • getDoubleValue

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