public final class DoubleWeightedMean extends org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic implements Serializable
A weighted mean implementation for floating-point weights, following the Commons Math3 framework.
This class is not thread-safe.
| Constructor and Description |
|---|
DoubleWeightedMean() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
DoubleWeightedMean |
copy() |
boolean |
equals(Object o) |
long |
getN() |
double |
getResult() |
int |
hashCode() |
void |
increment(double datum) |
void |
increment(double datum,
double weight) |
String |
toString() |
evaluate, evaluate, incrementAll, incrementAllpublic DoubleWeightedMean copy()
copy in interface org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticcopy in interface org.apache.commons.math3.stat.descriptive.UnivariateStatisticcopy in class org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatisticpublic void clear()
clear in interface org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticclear in class org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatisticpublic double getResult()
getResult in interface org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticgetResult in class org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatisticpublic long getN()
getN in interface org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticpublic void increment(double datum)
increment in interface org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticincrement in class org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatisticdatum - new datum to add to the mean, with weight 1public void increment(double datum,
double weight)
datum - new datum to add to the meanweight - weight of the new datumpublic int hashCode()
hashCode in class org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatisticpublic boolean equals(Object o)
equals in class org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatisticCopyright © 2014–2018. All rights reserved.