HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

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