Re: [PATCH] Fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly

2017-12-11 Thread Michele Pezzutti
I lowered to N = 250 and still fails with a good margin. On 12/11/2017 09:58 PM, Michele Pezzutti wrote: I apologize as I am unable to run the test suite in its full form. Nevertheless, I locally tested the following patch for the test suite: *26_numerics/random/poisson_distribution

Re: [PATCH] Fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly

2017-12-11 Thread Michele Pezzutti
); } ); + +  std::poisson_distribution<> pd4(37.17); +  auto bpd4 = std::bind(pd4, eng); +  testDiscreteDist<100, 400>(bpd4, [](int n) { return poisson_pdf(n, 37.17); } );  } On 12/11/2017 10:52 AM, Paolo Carlini wrote: Hi, On 10/12/2017 14:47, Michele Pezzutti wrote: Hi. This patch inten

[PATCH] Fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly

2017-12-10 Thread Michele Pezzutti
Hi. This patch intends to fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83237for issue description and tests.     * include/bits/random.tcc (poisson_distribution<_IntType>::operator()): Value of th