From the docs I assume that delta applies a “greater than”, since they explain:
If a number is specified, it will be used as the absolute difference required. For example if the filter were configured with a value of 2 and the last value passed through was 10, only values greater than 12 or less than 8 would be passed through.
Not “greater or equal”, just “greater”.
But in the source code I see:
and that’s (based on my limited knowledge of C++) a “greater than or equal to”.
Should the documentation be corrected, or the source code?
I think the latter, since I could use delta: 0
to avoid publishing identical values. With “>=” I have to pick an arbitrary sufficiently small number to obtain the same results, which seems to be a hack when I could pick “0” without the “equal to”.
Is there any reason to use “>=”?