Skip to main content
. 2011 Dec 8;5:57. doi: 10.3389/fncom.2011.00057

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
v w=av
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 y=Σxi
v1,,v1 w=Σvi
p Perpendicular vector v w such that vw=0
or Or function x1,…,xn y = 1 if xi>0; otherwise y = 0
and And function x1,…,xn y = 1 if i,xi>0; otherwise y = 0
1 One y = 1
rand Random vector A random v of length 1

(x, xi,y denote ports with a scalar value; v, vi, w ports with a vectorial value). Functions can be combined to form other more complex functions.