onemkl::rng::rayleigh¶
Generates Rayleigh distributed random values.
Syntax
template<typename T = float, method Method = inverse_function>
class rayleigh {
public:
rayleigh(): rayleigh((T)0.0, (T)1.0){}
rayleigh(T a, T b)
rayleigh(const rayleigh<T, Method>& other)
T a() const
T b() const
rayleigh<T, Method>& operator=(const rayleigh<T, Method>& other)
}
Include Files
mkl_sycl.hpp
Description
The onemkl::rng::rayleigh class object is used by the
onemkl::rng::generate function to provide Rayleigh distributed random
numbers with displacement (a
) and scalefactor (b
, β),
where a, β∈R ; β > 0.
The Rayleigh distribution is a special case of the
Weibull
distribution, where the shape parameter α = 2
.
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 |
b |
|
Scalefactor |
Parent topic: Distributions