package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Efficient sampling from given finitely supported (nonzero, positive) measures using the alias method. Measures need not be normalized on input, but sampling proceeds from the normalized probability measure associated to the given measure.

module type Mass = sig ... end

Mass is the module type describing the measure associated to points.

module type S = sig ... end

S is the module type of a module allowing to construct samplers based on the alias method.

OCaml

Innovation. Community. Security.