Package | Description |
---|---|
org.opentrafficsim.base |
Generic classes for entire OTS project such as Throw for preconditions and postcondition testing.
|
Modifier and Type | Method and Description |
---|---|
<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(Iterable<V> values,
Iterable<W> weights)
Adds a weighted value for each element.
|
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.
|
Copyright © 2014–2019 Delft University of Technology. All rights reserved.