Package org.datavec.api.transform.ops
Class AggregatorImpls.AggregableVariance<T extends Number>
- java.lang.Object
-
- org.datavec.api.transform.ops.AggregatorImpls.AggregableVariance<T>
-
- All Implemented Interfaces:
Serializable
,IAggregableReduceOp<T,Writable>
,Consumer<T>
,Supplier<Writable>
- Direct Known Subclasses:
AggregatorImpls.AggregablePopulationVariance
- Enclosing class:
- AggregatorImpls
public static class AggregatorImpls.AggregableVariance<T extends Number> extends Object implements IAggregableReduceOp<T,Writable>
This class offers an aggregable reduce operation for the unbiased variance, i.e. the estimator of the arithmetic mean of squared differences to the mean, corrected with Bessel's correction. See https://en.wikipedia.org/wiki/Unbiased_estimation_of_standard_deviation This is computed with Welford's method for increased numerical stability & aggregability.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggregableVariance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(T n)
<U extends IAggregableReduceOp<T,Writable>>
voidcombine(U acc)
Writable
get()
-
-
-
Method Detail
-
combine
public <U extends IAggregableReduceOp<T,Writable>> void combine(U acc)
- Specified by:
combine
in interfaceIAggregableReduceOp<T extends Number,Writable>
-
-