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

Detailed description

Uniform distribution in [0,1]

#include <distributions.h>

Inheritance diagram for cugar::Uniform_distribution:
cugar::Base_distribution< Uniform_distribution >

Public Methods

CUGAR_HOST_DEVICE Uniform_distribution (const float b)
 
CUGAR_HOST_DEVICE float map (const float U) const
 
CUGAR_HOST_DEVICE float density (const float x) const
 
- Public Methods inherited from cugar::Base_distribution< Uniform_distribution >
float next (Generator &gen) const
 

Constructor & Destructor Documentation

◆ Uniform_distribution()

CUGAR_HOST_DEVICE cugar::Uniform_distribution::Uniform_distribution ( const float  b)
inline

constructor

Parameters
bdistribution parameter

Member Function Documentation

◆ density()

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

probability density function

Parameters
xsample location

◆ map()

CUGAR_HOST_DEVICE float cugar::Uniform_distribution::map ( const float  U) const
inline

transform a uniformly distributed number through the distribution

Parameters
Ureal number to transform

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