Analytics Builder 10.14.0 | Using Analytics Builder for Cumulocity IoT | Block Reference | Calculation | Limit
 
Limit
apama.analyticsbuilder.blocks.Limit
Outputs a value that is kept within the defined upper and lower limits.
The input value is limited so that the output does not exceed the boundaries defined by the Lower Limit and Upper Limit parameters. If the input violates either limit, then the output is set to the parameter value, otherwise the value is passed through unchanged.
It is only mandatory to provide one of the limits. If this is the case, then the input is only limited in the direction of the specified parameter.
Parameters
Name
Description
Type
Notes
Upper Limit
Any input above this value results in the output being capped at this value.
float
Optional
Lower Limit
Any input below this value results in the output being capped at this value.
float
Optional
Input Port Details
Name
Description
Type
Value
The input value.
float
Output Port Details
Name
Description
Type
Output
The input value, if it is within the limits defined by the Lower Limit and Upper Limit parameters. If the input value exceeds one of the limit parameters, it is set to the value of that parameter.
float