Package microsim.statistics.weighted.functions


package microsim.statistics.weighted.functions
  • Classes
    Class
    Description
    This class represents the skeleton for all the function which operate on array of native data type values, appropriately weighted by weights specified in a corresponding array of doubles.
    This class computes the (weighted) average (mean) value of an array of values taken from a data source, weighted by corresponding weights: weighted mean = sum (values * weights) / sum (weights) Note that the array of weights must have the same length as the array of values, otherwise an exception will be thrown.
    This class computes the sum of an array of source values, with each element of the array multiplied by the weight of the source (the source must implement the Weight interface).
    SumFunction operating on weighted double source values.
    SumFunction operating on weighted integer source values.
    SumFunction operating on weighted long source values.