- Header:
<vsmc/rng/normal01.h>
- Distribution: Standard Normal \( f(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2} \)
- Method: Box-Muller
Types and functions
normal01_<N>x<W>_<F>;
void normal01_<N>x<W>_<F>_init (normal01_<N>x<W>_<F> *, cburng<N>x<W>_rng_t *, <FT> shape);
<FT> normal01_<N>x<W>_<F>_init (normal01_<N>x<W>_<F> *, cburng<N>x<W>_rng_t *);
Macros
NORMAL01_<N>x<W>
NORMAL01_<N>x<W>_INIT
NORMAL01_<N>x<W>_RAND
Examples
#define VSMC_HAS_OPENCL_DOUBLE 1
double shape = 2;