Table 2.
Filters and logical functions implemented in the G-code, with input/output ports and parameters.
| Symbol | Name | Input ports | Output ports | Parameters |
|---|---|---|---|---|
| u(a) | Step function | x | y = 1 if x > a; otherwise y = 0 | a |
| m(a) | Multiplicative function | x | y = ax | a |
| h1 | Hill function with coefficient 1 | x | y = x/(1 + x) | |
| h4 | Sigmoid function | x | y = x4/(1 + x4) | |
| (Hill coefficient 4) | ||||
| i | Inverse function | x | y = 1/x | |
| s | Sum function | x1,…,xn | ||
| p | Perpendicular vector | such that | ||
| or | Or function | x1,…,xn | y = 1 if ; otherwise y = 0 | |
| and | And function | x1,…,xn | y = 1 if ; otherwise y = 0 | |
| 1 | One | y = 1 | ||
| rand | Random vector | A random of length 1 |
(x, xi,y denote ports with a scalar value; , , ports with a vectorial value). Functions can be combined to form other more complex functions.