Aggregate class determining the variance of values in a group. More...
#include <ExprGroupAggrFunc.h>
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 |
Aggregate class determining the variance of values in a group.
Internal
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.
casacore::TableExprGroupVarianceDouble::TableExprGroupVarianceDouble | ( | TableExprNodeRep * | node | ) | [explicit] |
virtual casacore::TableExprGroupVarianceDouble::~TableExprGroupVarianceDouble | ( | ) | [virtual] |
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.
Double casacore::TableExprGroupVarianceDouble::itsM2 [protected] |
Definition at line 361 of file ExprGroupAggrFunc.h.
Int64 casacore::TableExprGroupVarianceDouble::itsNr [protected] |
Definition at line 360 of file ExprGroupAggrFunc.h.