Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

public Class VarSAggregator<V extends Number>

extends VarPAggregator<V extends Number>
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.execute.StdDevSAggregator

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

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from org.apache.derby.impl.sql.execute.VarPAggregator:
countsums

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Double
Inherited from org.apache.derby.impl.sql.execute.VarPAggregator:
accumulateinitmergereadExternalterminatewriteExternal

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.derby.impl.sql.execute.VarPAggregator.serialVersionUID.

Constructor Detail

VarSAggregatorback to summary
public VarSAggregator()

Method Detail

computeVarback to summary
protected Double computeVar()

Overrides org.apache.derby.impl.sql.execute.VarPAggregator.computeVar.

Annotations
@Override