Fermat
|
Wrapper class to transform a random number generator with a given distribution
#include <distributions.h>
Public Methods | |
CUGAR_HOST_DEVICE | Transform_generator (Generator &gen, const Distribution &dist) |
CUGAR_HOST_DEVICE float | next () const |
CUGAR_HOST_DEVICE float | density (const float x) const |
Public Members | |
Generator & | m_gen |
Distribution | m_dist |
|
inline |
constructor
gen | generator to wrap |
dist | transforming distribution |
|
inline |
probability density function
x | sample location |
|
inline |
return the next number in the sequence