| 19 | } |
| 20 | |
| 21 | void StdAggregator::Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) |
| 22 | { |
| 23 | Column column = table->GetColumn(m_StdAttr); |
| 24 | |
| 25 | Value value = column.ExtractValue(row); |
| 26 | |
| 27 | StdAggregatorState *pstate = EnsureState(state); |
| 28 | |
| 29 | pstate->StdSum += value; |
| 30 | pstate->StdQSum += pow(value, 2); |
| 31 | pstate->StdCount++; |
| 32 | } |
| 33 | |
| 34 | double StdAggregator::GetResultAndFreeState(AggregatorState *state) const |
| 35 | { |
nothing calls this directly
no test coverage detected