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

Modulestatistics-0.16.5.0Haskell2010

Statistics.Distribution.DiscreteUniform

The discrete uniform distribution. There are two parametrizations of this distribution. First is the probability distribution on an inclusive interval {1, ..., n}. This is parametrized with n only, where p_1, ..., p_n = 1/n. (discreteUniform).

The second parametrization is the uniform distribution on {a, ..., b} with probabilities p_a, ..., p_b = 1/(a-b+1). This is parametrized with a and b. (discreteUniformAB)

Contents
  1. Constructors
  2. Accessors
Synopsis
  • Packagestatistics-0.16.5.0
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceDiscreteUniform.hs

The discrete uniform distribution.

Instances19Eq, Data, Read, Show, Generic, Binary, …

Constructors

Accessors