Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Implemented
-
None
-
None
Description
This involves a new class added to distribution which implements a truncated normal distribution.
This is like the normal distribution, except values are bounded to a maximum or minimum (or both), unlike the normal distribution whose domain is infinite.
https://en.wikipedia.org/wiki/Truncated_normal_distribution
Implementation would be similar to how NormalDistribution is already structured.
There's a few ways to generate numbers, some of which are faster than others.
Inverse transform sampling could be used for simplicity.