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 xi(i = 1, …, n) with distribution parameter λi, where λi∈R; λi > 0.

The probability distribution is given by:


image0

The cumulative distribution function is as follows:


image1

Input Parameters

Name

Type

Description

method

onemkl::rng::method

Generation method. The specific values are as follows: onemkl::rng::gaussian_inverse See brief descriptions of the methods in Distributions Template Parameter onemkl::rng::method Values.

lambda

std::vector<double>

Array of n distribution parameters λ.