onemkl::rng::poisson_v¶
Generates Poisson distributed random values with varying mean.
Syntax
template<typename T = std::int32_t, method Method = gaussian_inverse>
class poisson_v {
public:
poisson_v(std::vector<double> lambda
poisson_v(const poisson_v<T, Method>& other)
std::vector<double> lambda() const
poisson_v<T, Method>& operator=(const poisson_v<T, Method>& other)
}
Include Files
mkl_sycl.hpp
Description
The onemkl::rng::poisson_v class object is used in the
onemkl::rng::generate function to provide n
Poisson distributed
random numbers x
i(i
= 1, …, n
) with
distribution parameter λi
, where λi∈R
; λi > 0
.
The probability distribution is given by:

The cumulative distribution function is as follows:

Input Parameters
Name |
Type |
Description |
---|---|---|
method |
|
Generation method. The specific values are as follows: |
lambda |
|
Array of |
Parent topic: Distributions