Class Welfords
- java.lang.Object
-
- com.linkedin.alpini.base.statistics.Welfords
-
- Direct Known Subclasses:
Welfords.DoubleWelford
,Welfords.LongWelford
public abstract class Welfords extends java.lang.Object
Welford's algorithm for calculating variance.- See Also:
- "B.P.Welford (1962)"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Welfords.DoubleWelford
static class
Welfords.LongWelford
static class
Welfords.Result
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(double value)
Welfords.Result
getResult()
void
merge(Welfords other)
void
reset()
-
-
-
Constructor Detail
-
Welfords
protected Welfords()
-
Welfords
protected Welfords(Welfords previous)
-
-
Method Detail
-
reset
public final void reset()
-
accept
public final void accept(double value)
-
merge
public void merge(Welfords other)
-
getResult
@Nonnull public Welfords.Result getResult()
-
-