Skip to content

ngernest/urn-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Urns

A Rust implementation of Urns (Lampropulos et al. 2017), a data structure which allows for random sampling and updating discrete distributions in logarithmic time.

For details about the design behind urns, see the original paper or the Haskell Symposium '17 talk.

This implementation has been adapted from:

Code overview

To compile, run cargo build.
To run unit tests + QuickCheck tests, run cargo test.

Dependencies:

  • rand (for random number generation)
  • quickcheck (only used for testing internal functions)

About

A Rust implementation of the Urn data structure for efficient random sampling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages