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