Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights. You can pass an Array or a Hash with desired probabilities and use Module or Class API to pick samples. Please, see documentation in the repo https://gitlab.com/oleksiy/weighted_sampler

Required Ruby Version

>= 0

Authors

Oleksiy Babich

Versions

  1. 1.1.1
    1. source

      1. 1.1.1 source January 27, 2020 (8.5 KB)
  2. 1.1.0
    1. source

      1. 1.1.0 source January 02, 2019 (8.5 KB)
  3. 1.0.3
    1. source

      1. 1.0.3 source July 26, 2018 (8 KB)
  4. 1.0.2
    1. source

      1. 1.0.2 source June 15, 2018 (8 KB)
  5. 1.0.1
    1. source

      1. 1.0.1 source June 15, 2018 (11 KB)
Show all versions (7 total)

Pushed by

SHA 256 checksum