public class WeightedMean extends Object implements Statistic
| Constructor and Description |
|---|
WeightedMean() |
WeightedMean(double[] data,
double[] weights) |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(double... data)
Recompute the statistic with more data, incrementally if possible.
|
void |
addData(double[] data,
double[] weights) |
long |
N()
Get the size of the sample.
|
double |
sumOfWeights() |
double |
value()
Get the value of the statistic.
|
public WeightedMean()
public WeightedMean(double[] data,
double[] weights)
public void addData(double... data)
Statisticpublic void addData(double[] data,
double[] weights)
public long N()
Statisticpublic double value()
Statisticpublic double sumOfWeights()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.