Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_math
simple_probability/2
Description
simple_probability/2 is an Erlang function exported by "age_math" module.
Calculates an approximated risk level on ground of total number of events and selected likelihood.
References
None
Parameters
Name
Type
Total
number()
Total number of events.
Possibilities
Number of events most-likely to happen.
Result
Value or Type
Returns approximated risk level.
Code Sample
> age_math:simple_probability(200, 12.55). 15.94