Loading

PROBABILITY

math statistics

Pushes on the stack a function which computes probabilities according to a provided value histogram.

To use the function pushed by PROBABILITY onto the stack, use EVAL.

PROBABILITY is available since version 1.0.0.

See also

Signatures

Examples

{ 0 0.5 1 0.25 2 0.25 } PROBABILITY 'p' STORE 1 $p EVAL