poisson_noise

odl.phantom.noise.poisson_noise(intensity, seed=None)[source]

Poisson distributed noise with given intensity.

Parameters
intensityTensorSpace or ProductSpace element

The intensity (usually called lambda) parameter of the noise.

Returns
poisson_noiseintensity.space element

Poisson distributed random variable.

seedint, optional

Random seed to use for generating the noise. For None, use the current seed.

Notes

For a Poisson distributed random variable X with intensity \lambda, the probability of it taking the value k \in \mathbb{N}_0 is given by

\frac{\lambda^k e^{-\lambda}}{k!}

Note that the function only takes integer values.