##### Built-in Functions

Netica contains an extensive library of built-in functions and constants which you can use in your equations.

The probability distribution functions all have a name that ends with "Dist" (e.g. NormalDist).  Their first argument is always the node for which the distribution is for.  So if node X has parent m, you could write:

P (X | m) = NormalDist (X, m, 0.2)

to indicate that X has a normal (Gaussian) distribution with mean given by parent m, and a standard deviation of 0.2.

###### Common Operators

 Functional Notation Operator Notation neg (x) - x not (b) ! b equal (x, y) x == y not_equal (x, y) x != y approx_eq (x, y) x ~= y less (x, y) x < y greater (x, y) x > y less_eq (x, y) x <= y greater_eq (x, y) x >= y plus (x1, x2, ... xn) x1 + x2 + ... + xn minus (x, y) x - y mult (x1, x2, ... xn) x1 * x2 * ... * xn div (x, y) x / y mod (x, base) x % base power (x, y) x ^ y and (b1, b2, ... bn) b1 && b2 && ... && bn or (b1, b2, ... bn) b1 || b2 || ... || bn if (test, tval, fval) test ? tval : fval

###### Common Math
 abs (x) absolute value sqrt (x) square root (positive) exp (x) exponential (e ^ x) log (x) logarithm base e log2 (x) logarithm base 2 log10 (x) logarithm base 10 sin (x) sine cos (x) cosine tan (x) tangent asin (x) arc sine acos (x) arc cosine atan (x) arc tangent atan2 (y,x) atan(y/x) but considers quadrant sinh (x) hyperbolic sine cosh (x) hyperbolic cosine tanh (x) hyperbolic tangent floor (x) floor (highest integer <= x) ceil (x) ceiling (lowest integer >= x) integer (x) integer part of number (same sign) frac (x) fraction part of number (same sign)