sample

open override fun sample(vararg support: Double): Double

Returns a sample that is Poisson distributed.

Return

A random sample from the distribution.

Throws

If k is negative.


open override fun sample(n: Int, vararg support: Double): DoubleArray

Returns n samples that are Poisson distributed.

Return

n random samples from the distribution

Parameters

n

The number of samples to return

Throws

If k is negative