public final class DoubleWeightedMean extends org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic implements Serializable
Ported from Mahout WeightedRunningAverage, to use Commons Math3 framework.
This class is not thread-safe.
| Constructor and Description |
|---|
DoubleWeightedMean() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
DoubleWeightedMean |
copy() |
void |
decrement(double datum) |
void |
decrement(double datum,
double weight) |
long |
getN() |
double |
getResult() |
void |
increment(double datum) |
void |
increment(double datum,
double weight) |
String |
toString() |
equals, evaluate, evaluate, hashCode, 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.AbstractStorelessUnivariateStatisticpublic void increment(double datum,
double weight)
public void decrement(double datum)
public void decrement(double datum,
double weight)
Copyright © 2012-2013 Myrrix Ltd. All Rights Reserved.