MAX

Description

Extracts the maximum on a set of numbers or event values.

MAX(Vector<Number/Event>)

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

Extract the highest value as Scalar<any> from the given parameter.

Parameters

ParameterDescription

vector

A vector of type <Number/Event>

Returns

Returns the highest value as Scalar<Number>


MAX(GroupedScalar<any, Number/Event>)

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

Extract the highest value as Scalar<any> from the given parameter.

Parameters

ParameterDescription

group

A GroupedScalar of type <any, Number/Event>

Returns

Returns the highest value as Scalar<Number>


MAX(GroupedVector<any, Number/Event>)

MAX(group: GroupedVector<any, Number/Event>): Scalar<Number>

Extract the highest value as Scalar<any> from the given parameter.

Parameters

ParameterDescription

group

A GroupedVector of type <any, Number/Event>

Returns

Returns the highest value as Scalar<Number>


Examples

Retrieve the maxiumum of the GridPowerConsumption time series.

MAX($GridPowerConsumption)

Last updated

© 2023 MOOST AG