]> git.lizzy.rs Git - rust.git/commit
libcore: add N(0,1) and Exp(1) distributions to core::rand.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sun, 28 Apr 2013 14:18:53 +0000 (00:18 +1000)
committerGraydon Hoare <graydon@mozilla.com>
Wed, 1 May 2013 23:51:45 +0000 (16:51 -0700)
commit1eb5efc5e25303bd72ce18ee3ecf82b109e2f67f
tree27cef94a4ab7885252824eb91dd6c0d463ee5571
parent08dd625d455548c7a5795db930ebfc5e3b1eb9c4
libcore: add N(0,1) and Exp(1) distributions to core::rand.

Sample from the normal and exponential distributions using the Ziggurat
algorithm.
src/etc/ziggurat_tables.py [new file with mode: 0755]
src/libcore/rand.rs
src/libcore/rand/distributions.rs [new file with mode: 0644]
src/libcore/rand/ziggurat_tables.rs [new file with mode: 0644]