public class WeightedVariance extends Object implements Statistic
Constructor and Description |
---|
WeightedVariance() |
WeightedVariance(boolean unbiased) |
WeightedVariance(double[] data,
double[] weights) |
WeightedVariance(double[] data,
double[] weights,
boolean unbiased) |
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 |
stdev() |
double |
value()
Get the value of the statistic.
|
public WeightedVariance()
public WeightedVariance(boolean unbiased)
public WeightedVariance(double[] data, double[] weights)
public WeightedVariance(double[] data, double[] weights, boolean unbiased)
public void addData(double... data)
Statistic
public void addData(double[] data, double[] weights)
public long N()
Statistic
public double value()
Statistic
public double stdev()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.