-
class
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.
class
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).
static class
SumFunction operating on weighted double source values.
static class
SumFunction operating on weighted integer source values.
static class
SumFunction operating on weighted long source values.