Skip to content

A Rust library for bernoulli distribution generation.

Notifications You must be signed in to change notification settings

Popog/bernoulli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bernoulli

A generic replacement for rand::distributions::Bernoulli which uses exact precision instead of a 64-bit approximation, bernoulli::BernoulliExact<T> provides an exact distribution for any rational value representable by T.

BernoulliExact<u32> performs on-par with Bernoulli, though with a non-trivial memory overhead.

Type Size
Bernoulli 8 bytes
BernoulliExact<u32> 20 bytes
BernoulliExact<u8> 5 bytes

About

A Rust library for bernoulli distribution generation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages