V
- value typeW
- weight typepublic class HarmonicMean<V extends Number,W extends Number> extends AbstractMean<HarmonicMean<V,W>,V,W>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
HarmonicMean() |
Modifier and Type | Method and Description |
---|---|
HarmonicMean<V,W> |
addImpl(V value,
Number weight)
Adds a value with weight.
|
double |
getMean()
Returns the weighted mean of accumulated data.
|
String |
toString() |
public final double getMean()
public final HarmonicMean<V,W> addImpl(V value, Number weight)
Copyright © 2018–2019 Delft University of Technology. All rights reserved.