Class Weighted_SumArrayFunction.Double

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

public static class Weighted_SumArrayFunction.Double extends Weighted_SumArrayFunction implements IDoubleSource
SumFunction operating on weighted double source values.
Author:
Michele Sonnessa and Ross Richardson
  • Field Details

    • dsum

      protected double dsum
  • Constructor Details

    • Double

      public Double(IWeightedDoubleArraySource source)
      Create a sum function on a weighted double array source.
      Parameters:
      source - The data source.
  • Method Details

    • apply

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

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