java.io.Externalizable, java.io.Serializable, Aggregator<V,java.lang.Double,VarPAggregator<V>>StdDevSAggregatorpublic class VarSAggregator<V extends java.lang.Number> extends VarPAggregator<V>
This class implements the SQL Standard VAR_SAMP() aggregator, computing the variance over a sample. It uses the IBM formula described here:
[ sum(xi2) - sum(xi)2/n ]/(n-1) where n is the number of items in the population x1 ... xn are the items in the population
VarPAggregator.Sums| Modifier and Type | Field | Description |
|---|---|---|
private static long |
serialVersionUID |
count, sums| Constructor | Description |
|---|---|
VarSAggregator() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.Double |
computeVar() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccumulate, init, merge, readExternal, terminate, writeExternalprivate static final long serialVersionUID
protected java.lang.Double computeVar()
computeVar in class VarPAggregator<V extends java.lang.Number>Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.