Package | Description |
---|---|
org.djutils.means |
Compute various kinds of mean values.
|
Modifier and Type | Class and 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.
|
Modifier and Type | Method and Description |
---|---|
<S> AbstractMean<MT,V,W> |
AbstractMean.add(Collection<S> collection,
Function<S,V> values,
Function<S,W> weights)
Adds each value (obtained by calling the
values function on each object in a Collection) with a weight
(obtained by calling the weights 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 provided
weights function. |
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.
|
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.
|
Copyright © 2018–2019 Delft University of Technology. All rights reserved.