Skip to content

Releases: ori88c/weighted-random-item-sampler

README and Documentation improvements

26 Oct 22:39
Compare
Choose a tag to compare

Key Features

  • Documentation improvements.
  • README improvements. In particular, adding an Algorithm section.

README formatting improvements

18 Aug 19:57
Compare
Choose a tag to compare

Key Features

  • README formatting improvements.

Initial Release

04 Aug 20:23
Compare
Choose a tag to compare

Key Features

  • Weighted Random Sampling: Sampling items with proportional probability to their weight.
  • Efficiency: O(log(n)) time and O(1) space per sample, making this class suitable for performance-demanding applications where the set of items is large and the sampling frequency is high.
  • Comprehensive documentation: The class is thoroughly documented, enabling IDEs to provide helpful tooltips that enhance the coding experience.
  • Tests: Fully covered by unit tests.
  • No external runtime dependencies: Only development dependencies are used.
  • ES2020 Compatibility: The tsconfig target is set to ES2020, ensuring compatibility with ES2020 environments.
  • TypeScript support.