Analytics Builder 10.16.0 | Using Analytics Builder for Cumulocity IoT | Block Reference | Calculation | Direction Detection
 
Direction Detection
apama.analyticskit.blocks.core.DirectionDetector
Detects whether the input value changes direction.
Outputs the change in direction and the last significant inflection point, ignoring minor variations if the changes are less than the defined hysteresis value. Repeated inputs of the same value are ignored.
Parameters
Name
Description
Type
Notes
Hysteresis
Only counts a change in direction if the input value changes by the defined hysteresis value since the point of changing direction.
Must either be zero (meaning all changes of direction are counted) or a a positive number.
float
Default: 0.0
Input Port Details
Name
Description
Type
Value
Numeric value for which to detect the change in direction.
float
Reset
Resets the state of the block.
pulse
Output Port Details
Name
Description
Type
Upward Direction
Is true if the input value changes towards the upward direction, else false.
boolean
Inflection Point
The last inflection point detected by the block.
float