values.cc: Fix thinkos.
2013-11-22 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/ext/random/hypergeometric_distribution/operators/ values.cc: Fix thinkos. From-SVN: r205248
This commit is contained in:
parent
06ccd3c154
commit
8a1c51c49a
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-11-22 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* testsuite/ext/random/hypergeometric_distribution/operators/
|
||||
values.cc: Fix thinkos.
|
||||
|
||||
2013-11-21 Edward Smith-Rowland <3dw4rd@verizon.net>
|
||||
|
||||
* include/experimental/string_view: Rep empty string with unit-length
|
||||
|
|
|
@ -33,17 +33,17 @@ test01()
|
|||
|
||||
std::mt19937 eng;
|
||||
|
||||
__gnu_cxx::hypergeometric_distribution hd1{15, 3, 2};
|
||||
__gnu_cxx::hypergeometric_distribution<> hd1{15, 3, 2};
|
||||
auto bhd1 = std::bind(hd1, eng);
|
||||
testDiscreteDist(bhd1, [](int k)
|
||||
{ return hypergeometric_pdf(k, 15, 3, 2); });
|
||||
|
||||
__gnu_cxx::hypergeometric_distribution hd2{500, 50, 30};
|
||||
__gnu_cxx::hypergeometric_distribution<> hd2{500, 50, 30};
|
||||
auto bhd2 = std::bind(hd2, eng);
|
||||
testDiscreteDist(bhd2, [](int k)
|
||||
{ return hypergeometric_pdf(k, 500, 50, 30); });
|
||||
|
||||
__gnu_cxx::hypergeometric_distribution hd3{100, 20, 5};
|
||||
__gnu_cxx::hypergeometric_distribution<> hd3{100, 20, 5};
|
||||
auto bhd3 = std::bind(hd3, eng);
|
||||
testDiscreteDist(bhd3, [](int k)
|
||||
{ return hypergeometric_pdf(k, 100, 20, 5); });
|
||||
|
|
Loading…
Add table
Reference in a new issue