public class WeightedMedian extends Object implements Statistic
| Constructor and Description |
|---|
WeightedMedian(double[] x,
double[] w)
Finds the weighted median of an array. x and w are sorted.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(double... arg0)
Recompute the statistic with more data, incrementally if possible.
|
long |
N()
Get the size of the sample.
|
double |
value()
Get the value of the statistic.
|
public WeightedMedian(double[] x,
double[] w)
x - the dataw - the weightsCopyright © 2010-2026 NM Group. All Rights Reserved.