In TamStat, we define four basic types of statistical functions:

Type Description Example
Summary functions, including measures of count, center, spread and position          mean 2 3 5 1 6
3.5
Probability distributions, discrete and continuous

⍝ probability of 2 heads in four tosses   

     4 .5 binomial 2
0.375

Relational Functions, such as eq, ne, gt, lt, between; these functions return a value of 1 (true) or 0 (false)        2  < 3
1
Logical Functions: not, and, or and if      (2 lt 3) and (4 gt 2)
0