Differential

The differential algorithm calculates the greatest difference between all of its inputs and returns a 1 it exceeds a given min threshold or a 0 otherwise.

Usage

This algorithm is often used with two inputs, but can take as many as you like. It always compares the highest value with the lowest one.

Parameters

ParameterMeaning
minThe threshold value - if the difference is greater than min, it returns 1, otherwise 0
absIf true or 1, the absolute value of the difference is used, so that min can apply to positive and negative differentials
invertIf true or 1, the output of the algorithm is reversed. This changes the algorithm to alerting when values approach one-another rather than drifting apart.

Other Algorithms