##### 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)

###### Special Math

round (x)

roundto (dx, x)

approx_eq (x, y)

eqnear (reldiff, x, y)

clip (min, max, x)

rect (x, a, b)

sign (x)

xor (b1, b2, ... bn)

increasing (x1, x2, ... xn)

increasing_eq (x1, x2, ... xn)

avg (x1, x2, ... xn)

mag (x1, x2, ... xn)

min (x1, x2, ... xn)

max (x1, x2, ... xn)

argmin0/1 (x0, x1, ... xn)

argmax0/1 (x0, x1, ... xn)

nearest0/1 (val, c0, c1, ... cn)

select0/1 (index, c0, c1, ... cn)

member (elem, s1, s2, ... sn)

factorial (n)

logfactorial (n)

logistic (t)

logit (p)

gamma (x)

loggamma (x)

beta (z, w)

erf (x)

erfc (x)

binomial (n, k)

multinomial (n1 , n2, ... nn)

###### Continuous Probability Distributions

UniformDist (x, a, b)

TriangularDist (x, m, w)

(x, m, w1, w2)

TriangularEnd3Dist (x, m, a, b)

NormalDist (x, μ , σ)

LognormalDist(x, η, Φ)

ExponentialDist (x, λ)

WeibullDist (x, α, β)

Beta4Dist (x, α, β, c, d)

LogisticDist (x, μ, σ)

CauchyDist (x, μ, σ)

LaplaceDist (x, μ, β)

ExtremeValueDist (x, μ, σ)

ParetoDist (x, a, b)

ChiSquareDist (x, ν)

StudentTDist (x, ν)

FDist (x, n1, ν2)

###### Discrete Probability Distributions

SingleDist (k, c)

DiscUniformDist (k, a, b)

BernoulliDist (b, p)

BinomialDist (k, n, p)

PoissonDist (k, μ)

HypergeometricDist (k, n, s, N)

NegBinomialDist (k, n, p)

GeometricDist (k, p)

LogarithmicDist (k, p)

MultinomialDist (bc, n, k1, p1, k2, p2, ... km, pm)

(e, leak,  b1, p1, b2, p2, ... bn, pn)

NoisyAndDist (e, inh,  b1, p1, b2, p2, ... bn, pn)

NoisyMaxDist (…)

NoisySumDist (…)