Package org.djutils.math.means
Class GeometricMean<V extends Number,W extends Number> 
java.lang.Object
org.djutils.math.means.AbstractMean<GeometricMean<V,W>,V,W>
   
org.djutils.math.means.GeometricMean<V,W> 
- Type Parameters:
 V- value typeW- weight type
public class GeometricMean<V extends Number,W extends Number> 
extends AbstractMean<GeometricMean<V,W>,V,W>   
Compute the geometric (weighted) mean of a set of values. Geometric mean can not handle negative or zero 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
- 
GeometricMean
public GeometricMean() 
 - 
 - 
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
 
 -