HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulerandom-fu-0.3.0.1Haskell2010

Data.Random.Distribution.Poisson

Synopsis
  • Packagerandom-fu-0.3.0.1
  • Exports9
  • LanguageHaskell2010
  • LicenceLicenseRef-PublicDomain
  • SourcePoisson.hs
valueintegralPoissonPDF :: (Integral a, Real b) => b -> a -> Double

The probability of getting exactly k successes is given by the probability mass function:

f(k;\lambda) = \Pr(X = k) = \frac{\lambda^k e^{-\lambda}}{k!}

Note that in integralPoissonPDF the parameter of the mass function are given first and the range of the random variable distributed according to the Poisson distribution is given last. That is, f(2;0.5) is calculated by integralPoissonPDF 0.5 2.

newtypenewtype Poisson b a
#

Constructors

Instances39CDF, Distribution, PDF, …