Package org.djutils.math.means
Class HarmonicMean<V extends Number,W extends Number>
- Type Parameters:
V- value typeW- weight type
public class HarmonicMean<V extends Number,W extends Number>
extends AbstractMean<HarmonicMean<V,W>,V,W>
Compute the harmonic (weighted) mean of a set of values.
Copyright (c) 2013-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Constructor Details
-
HarmonicMean
public HarmonicMean()
-
-
Method Details
-
getMean
public final double getMean()Description copied from class:AbstractMeanReturns the weighted mean of accumulated data. -
addImpl
Description copied from class:AbstractMeanAdds a value with weight. -
toString
-