1 /* test_binomial_distribution.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 14 #define BOOST_RANDOM_DISTRIBUTION boost::random::binomial_distribution<> 15 #define BOOST_RANDOM_ARG1 t 16 #define BOOST_RANDOM_ARG2 p 17 #define BOOST_RANDOM_ARG1_DEFAULT 1 18 #define BOOST_RANDOM_ARG2_DEFAULT 0.5 19 #define BOOST_RANDOM_ARG1_VALUE 10 20 #define BOOST_RANDOM_ARG2_VALUE 0.25 21 22 #define BOOST_RANDOM_DIST0_MIN 0 23 #define BOOST_RANDOM_DIST0_MAX 1 24 #define BOOST_RANDOM_DIST1_MIN 0 25 #define BOOST_RANDOM_DIST1_MAX 10 26 #define BOOST_RANDOM_DIST2_MIN 0 27 #define BOOST_RANDOM_DIST2_MAX 10 28 29 #define BOOST_RANDOM_TEST1_PARAMS 30 #define BOOST_RANDOM_TEST1_MIN 0 31 #define BOOST_RANDOM_TEST1_MAX 1 32 33 #define BOOST_RANDOM_TEST2_PARAMS (10, 0.25) 34 #define BOOST_RANDOM_TEST2_MIN 0 35 #define BOOST_RANDOM_TEST2_MAX 10 36 37 #include "test_distribution.ipp" 38