package prbnmcn-stats

  1. Overview
  2. Docs

Simple combinatorics.

val enumerate_subsets : int -> 'a list -> 'a list list

enumerate_subsets n l enumerates all subsets of size n of l.

val sample_without_replacement : int -> 'a list -> ('a list * 'a list) Stats_intf.gen

sample_without_replacement n l samples a subset of size n from l without replacement.

OCaml

Innovation. Community. Security.