Aggregate class determining the variance of array values in a group. More...
#include <ExprGroupAggrFuncArray.h>
Public Member Functions | |
TableExprGroupVarianceArrayDouble (TableExprNodeRep *node) | |
virtual | ~TableExprGroupVarianceArrayDouble () |
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 array values in a group.
Internal
Aggregate class determining the variance of array values in a group. It uses a running algorithm (see en.wikipedia.org/wiki/Algorithms_for_calculating_variance)
Definition at line 315 of file ExprGroupAggrFuncArray.h.
casacore::TableExprGroupVarianceArrayDouble::TableExprGroupVarianceArrayDouble | ( | TableExprNodeRep * | node | ) |
virtual casacore::TableExprGroupVarianceArrayDouble::~TableExprGroupVarianceArrayDouble | ( | ) | [virtual] |
virtual void casacore::TableExprGroupVarianceArrayDouble::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::TableExprGroupVarianceArrayDouble::finish | ( | ) | [virtual] |
If needed, finish the aggregation.
By default nothing is done.
Reimplemented from casacore::TableExprGroupFuncBase.
Reimplemented in casacore::TableExprGroupStdDevArrayDouble.
Definition at line 324 of file ExprGroupAggrFuncArray.h.
Definition at line 323 of file ExprGroupAggrFuncArray.h.