Apama Analytics Builder 10.7.0 | Using Apama Analytics Builder for Cumulocity IoT | Block Reference | Aggregate | Minimum / Maximum
 
Minimum / Maximum
apama.analyticskit.blocks.core.MinMax
Calculates the minimum and maximum of a value over time.
The minimum is defined as the smallest value (closest to negative infinity) of the input values in the window, and the maximum is defined as the largest value (closest to positive infinity) of the input values in the window.
The block can operate over a time-bounded window that is specified with the Window Duration parameter. If this parameter is not specified, it uses an unbounded window. The Reset input clears the window contents. Output is generated on any new input that exceeds the current minimum or maximum, or, if Window Duration is set, if a previous minimum / maximum expires.
If a window is configured, the block will use a set of 20 buckets, so the time of expired values is an approximation to the nearest bucket interval.
Parameters
Name
Description
Type
Notes
Window Duration (secs)
If present, the amount of time (in seconds) for which values are to be kept in the window.
This must be a finite and positive number.
float
Optional
Input Port Details
Name
Description
Type
Value
Input for which the minimum and maximum is to be calculated.
float
Reset
Clears the content of the window.
pulse
Output Port Details
Name
Description
Type
Minimum
The smallest value in the window (closest to negative infinity).
float
Maximum
The largest value in the window (closest to positive infinity).
float