Fermat
Public Methods | List of all members
cugar::Gaussian_generator Struct Reference

Detailed description

Wrapper class to generate Gaussian distributed numbers out of a uniform random number generator

#include <distributions.h>

Public Methods

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
 

Constructor & Destructor Documentation

◆ Gaussian_generator()

CUGAR_HOST_DEVICE cugar::Gaussian_generator::Gaussian_generator ( const float  sigma)
inline

constructor

Parameters
sigmavariance

Member Function Documentation

◆ density()

CUGAR_HOST_DEVICE float cugar::Gaussian_generator::density ( const float  x) const
inline

probability density function

Parameters
xsample location

◆ next()

template<typename Generator >
CUGAR_HOST_DEVICE float cugar::Gaussian_generator::next ( Generator &  random)
inline

return the next number in the sequence

Parameters
randomrandom number generator

The documentation for this struct was generated from the following file: