Class Weighted_SumArrayFunction.Long

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

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

    • lsum

      protected double lsum
  • Constructor Details

    • Long

      public Long(IWeightedLongArraySource source)
      Create a sum function on a weighted long array source.
      Parameters:
      source - The weighted data source.
  • Method Details

    • apply

      public void apply(long[] data, double[] weights)
      Description copied from class: AbstractWeightedArrayFunction
      Apply the function on a the given array of long 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.