Loading

PROBABILITY


math statistics
Since v1.0.0
Available on all platforms
See also

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.

Signature

Examples

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