ProbabilityScale typedef
A function that scales a probability ( a value between 0 and 1)
such that the returned value
is also a probability:
- 0 < value < 1,
- value = 0 for p = 0,
- value = 1 for p = 1.
Implementation
typedef ProbabilityScale = num Function(num p);