HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulerandom-fu-0.3.0.1Haskell2010

Data.Random.Distribution.Poisson

  • 1 type
  • 8 values
  • 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, …