onemkl::rng::lognormal¶
Generates log-normally distributed random numbers.
Syntax
template<typename T = float, method Method = box_muller2>
class lognormal {
public:
lognormal(): lognormal((T)0.0, (T)1.0, (T) 0.0, (T)1.0){}
lognormal(Tm, T s, T displ, T scale)
lognormal(const lognormal<T, Method>& other)
T m() const
T s() const
T displ() const
T scale() const
lognormal<T, Method>& operator=(const lognormal<T, Method>& other)
}
Include Files
mkl_sycl.hpp
Description
The onemkl::rng::lognormal class object is used in the
onemkl::rng::generate function to provide random numbers with average
of distribution (m
, a
) and standard deviation (s
, σ)
of subject normal distribution, displacement (displ
, b
),
and scalefactor (scale
, β), where
a, σ, b, β ∈ 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: |
m |
|
Average |
s |
|
Standard deviation σ of the subject normal distribution. |
displ |
|
Displacement |
scale |
|
Scalefactor scale. |
Parent topic: Distributions