Differences

This shows you the differences between two versions of the page.

Link to this comparison view

agency:differential [2023/01/31 01:04] – created optrixagency:differential [2025/12/18 22:50] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====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===
 +
 +^Parameter^Meaning^
 +|min|The threshold value - if the difference is greater than //min//, it returns 1, otherwise 0|
 +|abs|If **true** or **1**, the //absolute value// of the difference is used, so that //min// can apply to positive and negative differentials|
 +|invert|If **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===