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 classArithmeticMean<V extends Number,W extends Number>Compute arithmetic (weighted) mean of a set of values.classGeometricMean<V extends Number,W extends Number>Compute the geometric (weighted) mean of a set of values.classHarmonicMean<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 thevaluesfunction on each object in a Collection) with a weight (obtained by calling theweightsfunction 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 providedweightsfunction.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.