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

Detailed description

Bounded exponential distribution

#include <distributions.h>

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

Public Methods

CUGAR_HOST_DEVICE Bounded_exponential (const float b)
 
CUGAR_HOST_DEVICE Bounded_exponential (const float b1, const float b2)
 
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< Bounded_exponential >
float next (Generator &gen) const
 

Constructor & Destructor Documentation

◆ Bounded_exponential() [1/2]

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

constructor

Parameters
bdistribution parameter

◆ Bounded_exponential() [2/2]

CUGAR_HOST_DEVICE cugar::Bounded_exponential::Bounded_exponential ( const float  b1,
const float  b2 
)
inline

constructor

Parameters
bdistribution parameter

Member Function Documentation

◆ density()

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

probability density function

Parameters
xsample location

◆ map()

CUGAR_HOST_DEVICE float cugar::Bounded_exponential::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: