| 1 | /* test_binomial.cpp |
| 2 | * |
| 3 | * Copyright Steven Watanabe 2010 |
| 4 | * Distributed under the Boost Software License, Version 1.0. (See |
| 5 | * accompanying file LICENSE_1_0.txt or copy at |
| 6 | * http://www.boost.org/LICENSE_1_0.txt) |
| 7 | * |
| 8 | * $Id$ |
| 9 | * |
| 10 | */ |
| 11 | |
| 12 | #include <boost/random/binomial_distribution.hpp> |
| 13 | #include <boost/random/uniform_int.hpp> |
| 14 | #include <boost/random/uniform_01.hpp> |
| 15 | #include <boost/math/distributions/binomial.hpp> |
| 16 | |
| 17 | #define BOOST_RANDOM_DISTRIBUTION boost::random::binomial_distribution<> |
| 18 | #define BOOST_RANDOM_DISTRIBUTION_NAME binomial |
| 19 | #define BOOST_MATH_DISTRIBUTION boost::math::binomial |
| 20 | #define BOOST_RANDOM_ARG1_TYPE int |
| 21 | #define BOOST_RANDOM_ARG1_NAME n |
| 22 | #define BOOST_RANDOM_ARG1_DEFAULT 100000 |
| 23 | #define BOOST_RANDOM_ARG1_DISTRIBUTION(n) boost::uniform_int<>(0, n) |
| 24 | #define BOOST_RANDOM_ARG2_TYPE double |
| 25 | #define BOOST_RANDOM_ARG2_NAME p |
| 26 | #define BOOST_RANDOM_ARG2_DEFAULT 1000.0 |
| 27 | #define BOOST_RANDOM_ARG2_DISTRIBUTION(n) boost::uniform_01<>() |
| 28 | #define BOOST_RANDOM_DISTRIBUTION_MAX n |
| 29 | |
| 30 | #include "test_real_distribution.ipp" |
| 31 | |