Uses of Class
org.opentrafficsim.base.WeightedMeanAndSum
| Package | Description |
|---|---|
| org.opentrafficsim.base |
Generic classes for entire OTS project such as Throw for preconditions and postcondition testing.
|
-
Uses of WeightedMeanAndSum in org.opentrafficsim.base
Methods in org.opentrafficsim.base that return WeightedMeanAndSum Modifier and Type Method Description WeightedMeanAndSum<V,W>WeightedMeanAndSum. add(Iterable<V> values, Iterable<W> weights)Adds a weighted value for each element.<S> WeightedMeanAndSum<V,W>WeightedMeanAndSum. add(Collection<S> collection, Function<S,V> values, Function<S,W> weights)Adds each value with a weight given by a function.WeightedMeanAndSum<V,W>WeightedMeanAndSum. add(Collection<V> collection, Function<V,W> weights)Adds each value with a weight given by a function.WeightedMeanAndSum<V,W>WeightedMeanAndSum. add(Map<V,W> map)Adds each weighted value from a map.WeightedMeanAndSum<V,W>WeightedMeanAndSum. add(V[] values, W[] weights)Adds a weighted value for each element.WeightedMeanAndSum<V,W>WeightedMeanAndSum. add(V value, W weight)Adds a value with weight.