Change (Analytic Filter)
Description
The Change filter is used to prevent output unless there has been a change to the incoming data.
This prevents redundant calls to your sinks.
The amount of change allowed can be set with the threshold parameter. This allows you to filter out small amounts of drift or error in the value.
Parameters
Name | Default | Meaning |
---|---|---|
Threshold | 0 | The amount of change that can be safely ignored |
Example
<filter type="Change"> <threshold>0.01</threshold> </filter>
Prevents output unless the value has changed by more than 0.01 (in either direction)
Example Input Sequence
Index | Value |
---|---|
07:00:00 | 10 |
Output Sent (No Previous Values to Compare Against)
Index | Value |
---|---|
07:10:00 | 10 |
No Output (No Change Detected)
Index | Value |
---|---|
07:20:00 | 10.01 |
No Output (Change Does Not Exceed Threshold)
Index | Value |
---|---|
07:30:00 | 11 |
Output Sent (Change Exceeds Threshold)