[rand.dist.bern.bin]. The evaluation function for this binomial distribution is hopefully just a placeholder. It is using the simplest and slowest method for computing the distribution and needs to be upgraded.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2010-05-11 23:26:59 +00:00
parent f5256e16df
commit 03aad81afd
5 changed files with 168 additions and 13 deletions

View File

@@ -19,7 +19,7 @@
int main()
{
{
typedef std::uniform_int_distribution<> D;
typedef std::bernoulli_distribution D;
typedef std::minstd_rand0 G;
G g;
D d(.75);