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

public Class StdDevSAggregator<V extends Number>

extends VarSAggregator<V extends Number>
Class Inheritance

This class implements the SQL Standard STDDEV_SAMP() aggregator, computing a sample's standard deviation. It relies on VarSAggregator to compute the sample's variance and then applies the textbook definition of standard deviation:


√var_samp()

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Double
Inherited from org.apache.derby.impl.sql.execute.VarSAggregator:
computeVar

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

StdDevSAggregatorback to summary
public StdDevSAggregator()

Method Detail

terminateback to summary
public Double terminate()

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

Implements org.apache.derby.agg.Aggregator.terminate.

Doc from org.apache.derby.agg.Aggregator.terminate.

Return the result scalar value

Returns:Double

the result scalar value

Annotations
@Override