MIN/MAX
- Last UpdatedAug 17, 2022
- 1 minute read
The MIN() and MAX() functions produce a stream of results selecting the minimum or maximum value of a stream. The returned timestamps correspond to the minimum/maximum values retrieved, rather than the beginning of the time interval.
When using MIN() or MAX() in a query, if no resolution is specified then the behavior is the same as minimum or maximum retrieval modes with no resolution specified; the duration between the start and end times is divided into 100 equal cycles, and the minimum/maximum values are calculated for each cycle.
Syntax
|
Format |
Stream = MIN( Stream ) Stream = MAX( Stream ) |
|
Arguments |
Stream - A time-ordered vector of values |
|
Description |
Returns the minimum (or maximum) value of a stream. |
|
Format |
Stream = MIN( Stream, TimeInterval ) Stream = MAX( Stream, TimeInterval ) |
|
Arguments |
Stream - A time-ordered vector of values TimeInterval - The time interval over which minimum or maximum values are calculated |
|
Description |
Returns the minimum (or maximum) value of a stream over the specified time interval. |