Uses of Class
org.djutils.means.AbstractMean
Package | Description |
---|---|
org.djutils.means |
Compute various kinds of mean values.
|
-
Uses of AbstractMean in org.djutils.means
Subclasses of AbstractMean in org.djutils.means Modifier and Type Class Description class
ArithmeticMean<V extends Number,W extends Number>
Compute arithmetic (weighted) mean of a set of values.class
GeometricMean<V extends Number,W extends Number>
Compute the geometric (weighted) mean of a set of values.class
HarmonicMean<V extends Number,W extends Number>
Compute the harmonic (weighted) mean of a set of values.Methods in org.djutils.means that return AbstractMean Modifier and Type Method Description AbstractMean<MT,V,W>
AbstractMean. add(Iterable<V> values)
Add values with weight 1.AbstractMean<MT,V,W>
AbstractMean. add(Iterable<V> values, Iterable<W> weights)
Adds weighted values.<S> AbstractMean<MT,V,W>
AbstractMean. add(Collection<S> collection, Function<S,V> values, Function<S,W> weights)
Adds each value (obtained by calling thevalues
function on each object in a Collection) with a weight (obtained by calling theweights
function on the same object from the Collection).AbstractMean<MT,V,W>
AbstractMean. add(Collection<V> collection, Function<V,W> weights)
Adds each value with a weight obtained by calling the providedweights
function.AbstractMean<MT,V,W>
AbstractMean. add(Map<V,W> map)
Adds each key value from a map weighted with the mapped to value.AbstractMean<MT,V,W>
AbstractMean. add(V value)
Add a value with weight 1.AbstractMean<MT,V,W>
AbstractMean. add(V[] values)
Add values with weight 1.AbstractMean<MT,V,W>
AbstractMean. add(V[] values, W[] weights)
Adds weighted values.AbstractMean<MT,V,W>
AbstractMean. add(V value, W weight)
Adds a value with weight.protected abstract AbstractMean<MT,V,W>
AbstractMean. addImpl(V value, Number weight)
Adds a value with weight.