About

Metadata

  • Last updated , by JaredTobin
  • License MIT
  • Categories Mathematics
  • Maintained by: jared@jtobin.ca

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.8.3
  2. 8.2.2

Readme

Basic sampling tools.

Exports variations on two simple functions for sampling from arbitrary Foldable collections:

  • sample, for sampling without replacement

  • resample, for sampling with replacement (i.e., a bootstrap)

Each variation can be prefixed with p to sample from a container of values weighted by probability.