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.Simplex

  • 1 type
  • 3 values
  • Packagerandom-fu-0.3.0.1
  • Exports4
  • LanguageHaskell2010
  • LicenceLicenseRef-PublicDomain
  • SourceSimplex.hs
newtypenewtype StdSimplex as
#

Uniform distribution over a standard simplex.

Constructors

  • StdSimplex Int

    StdSimplex k constructs a standard simplex of dimension k (standard k-simplex). An element of the simplex represents a vector variable as = (a_0, a_1, ..., a_k). The elements of as are more than or equal to 0 and sum as is always equal to 1.

Instances3Distribution, Eq, Show

An algorithm proposed by Rubinstein & Melamed (1998). See, e.g., S. Onn, I. Weissman. Generating uniform random vectors over a simplex with implications to the volume of a certain polytope and to multivariate extremes. Ann Oper Res (2011) 189:331-342.