casacore::TableExprGroupVarianceDouble Class Reference

Aggregate class determining the variance of values in a group. More...

#include <ExprGroupAggrFunc.h>

Inheritance diagram for casacore::TableExprGroupVarianceDouble:
casacore::TableExprGroupFuncDouble casacore::TableExprGroupFuncBase casacore::TableExprGroupStdDevDouble

List of all members.

Public Member Functions

 TableExprGroupVarianceDouble (TableExprNodeRep *node)
virtual ~TableExprGroupVarianceDouble ()
virtual void apply (const TableExprId &id)
 Get the operand's value for the given row and apply it to the aggregation.
virtual void finish ()
 If needed, finish the aggregation.

Protected Attributes

Int64 itsNr
Double itsM2

Detailed Description

Aggregate class determining the variance of values in a group.

Intended use:

Internal

Review Status

Test programs:
tExprGroup

Synopsis

Aggregate class determining the variance of values in a group. It uses a running algorithm (see en.wikipedia.org/wiki/Algorithms_for_calculating_variance)

Definition at line 352 of file ExprGroupAggrFunc.h.


Constructor & Destructor Documentation

casacore::TableExprGroupVarianceDouble::TableExprGroupVarianceDouble ( TableExprNodeRep node  )  [explicit]
virtual casacore::TableExprGroupVarianceDouble::~TableExprGroupVarianceDouble (  )  [virtual]

Member Function Documentation

virtual void casacore::TableExprGroupVarianceDouble::apply ( const TableExprId id  )  [virtual]

Get the operand's value for the given row and apply it to the aggregation.

This function should not be called for lazy classes.

Implements casacore::TableExprGroupFuncBase.

virtual void casacore::TableExprGroupVarianceDouble::finish (  )  [virtual]

If needed, finish the aggregation.

By default nothing is done.

Reimplemented from casacore::TableExprGroupFuncBase.

Reimplemented in casacore::TableExprGroupStdDevDouble.


Member Data Documentation

Definition at line 361 of file ExprGroupAggrFunc.h.

Definition at line 360 of file ExprGroupAggrFunc.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1