SUM

Description

Calculates the sum on a set of numbers or event values

SUM(Vector<Number/Event>)

SUM(vector: Vector<Number/Event>): Scalar<Number>

Calculate the sum as Scalar<any> from the given parameter.

Parameters

Parameter
Description

vector

A vector of type <Number/Event>

Returns

Returns the sum as Scalar<Number>


SUM(GroupedScalar<any, Number/Event>)

SUM(group: GroupedScalar<any, Number/Event>): Scalar<Number>

Calculate the sum as Scalar<any> from the given parameter.

Parameters

Parameter
Description

group

A GroupedScalar of type <any, Number/Event>

Returns

Returns the sum as Scalar<Number>


SUM(GroupedVector<any, Number/Event>)

SUM(group: GroupedVector<any, Number/Event>): GroupedScalar<Number>

Calculate the sum as Scalar<any> from the given parameter.

Parameters

Parameter
Description

group

A GroupedVector of type <any, Number/Event>

Returns

Returns the sum as Scalar<Number>


Examples

Retrieve the sum of the GridPowerConsumption time series.

SUM($GridPowerConsumption)

Last updated

© 2023 MOOST AG