All pages
Powered by GitBook
1 of 1

Loading...

SUM

Description

Calculates the sum on a set of numbers or event values

SUM(Vector<Number/Event>)

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

Parameters

Parameter
Description

Returns

Returns the sum as Scalar<Number>


SUM(GroupedScalar<any, Number/Event>)

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

Parameters

Parameter
Description

Returns

Returns the sum as Scalar<Number>


SUM(GroupedVector<any, Number/Event>)

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

Parameters

Parameter
Description

Returns

Returns the sum as Scalar<Number>


Examples

Retrieve the sum of the GridPowerConsumption time series.

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

vector

A vector of type <Number/Event>

group

A GroupedScalar of type <any, Number/Event>

group

A GroupedVector of type <any, Number/Event>

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