A random variable sampling from the standard normal distribution over
any
RealFloat type (subject to the rest of the constraints - it
builds and uses a
Ziggurat internally, which requires the
Erf class).
Because it computes a
Ziggurat, it is very expensive to use for
just one evaluation, or even for multiple evaluations if not used and
reused monomorphically (to enable the ziggurat table to be let-floated
out). If you don't know whether your use case fits this description
then you're probably better off using a different algorithm, such as
boxMullerNormalPair or
knuthPolarNormalPair. And of
course if you don't need the full generality of this definition then
you're much better off using
doubleStdNormal or
floatStdNormal.
As far as I know, this should be safe to use in any monomorphic
Distribution Normal instance declaration.