onemkl::rng::exponential¶
Generates exponentially distributed random numbers.
Syntax
template<typename T = float, method Method = inverse_function>
class exponential {
public:
exponential(): exponential((T)0.0, (T)1.0){}
exponential(T a, T beta)
exponential(const exponential<T, Method>& other)
T a() const
T beta() const
exponential<T, Method>& operator=(const exponential<T, Method>& other)
}
Include Files
mkl_sycl.hpp
Description
The onemkl::rng::exponential class object is used in
onemkl::rng::generate function to provide random numbers with
exponential distribution that has displacement a and scalefactor
β, where a, β∈R ; β > 0
.
The probability density function is given by:

The cumulative distribution function is as follows:

Input Parameters
Name |
Type |
Description |
---|---|---|
method |
|
Generation method. The specific values are as follows: |
a |
|
Displacement |
beta |
|
Scalefactor β. |
Parent topic: Distributions