Wrapper class to generate Gaussian distributed numbers out of a uniform random number generator
#include <distributions.h>
|
CUGAR_HOST_DEVICE | Gaussian_generator (const float sigma) |
|
template<typename Generator > |
CUGAR_HOST_DEVICE float | next (Generator &random) |
|
CUGAR_HOST_DEVICE float | density (const float x) const |
|
◆ Gaussian_generator()
CUGAR_HOST_DEVICE cugar::Gaussian_generator::Gaussian_generator |
( |
const float |
sigma | ) |
|
|
inline |
◆ density()
CUGAR_HOST_DEVICE float cugar::Gaussian_generator::density |
( |
const float |
x | ) |
const |
|
inline |
probability density function
- Parameters
-
◆ next()
template<typename Generator >
CUGAR_HOST_DEVICE float cugar::Gaussian_generator::next |
( |
Generator & |
random | ) |
|
|
inline |
return the next number in the sequence
- Parameters
-
random | random number generator |
The documentation for this struct was generated from the following file:
- C:/p4research/research/jpantaleoni/Fermat-Public/contrib/cugar/sampling/distributions.h