AVG

Description

Calculates the average on a set of numbers or event values

AVG(Vector<Number/Event>)

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

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

Parameters

ParameterDescription

vector

A vector of type <Number/Event>

Returns

Returns the average as Scalar<Number>


AVG(GroupedScalar<any, Number/Event>)

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

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

Parameters

ParameterDescription

group

A GroupedScalar of type <any, Number/Event>

Returns

Returns the average as Scalar<Number>


AVG(GroupedVector<any, Number/Event>)

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

Calculate the average as GroupedScalar<any> from the given parameter.

Parameters

ParameterDescription

group

A GroupedVector of type <any, Number/Event>

Returns

Returns the average as Scalar<Number>


Examples

Retrieve the average of the GridPowerConsumption time series.

AVG($GridPowerConsumption)

Last updated

© 2023 MOOST AG