public class SynchronizedStatistic extends Object implements Statistic
Statistic
by synchronizing all public methods
so that only one thread at a time can access the instance.
This is essentially the same principle used by Java's synchronized collection class.Modifier and Type | Method and Description |
---|---|
void |
addData(double... data)
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.
|
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.