• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* test_poisson_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/poisson_distribution.hpp>
13 
14 #include <limits>
15 
16 #define BOOST_RANDOM_DISTRIBUTION boost::random::poisson_distribution<>
17 #define BOOST_RANDOM_ARG1 mean
18 #define BOOST_RANDOM_ARG1_DEFAULT 1.0
19 #define BOOST_RANDOM_ARG1_VALUE 7.5
20 
21 #define BOOST_RANDOM_DIST0_MIN 0
22 #define BOOST_RANDOM_DIST0_MAX (std::numeric_limits<int>::max)()
23 #define BOOST_RANDOM_DIST1_MIN 0
24 #define BOOST_RANDOM_DIST1_MAX (std::numeric_limits<int>::max)()
25 
26 #define BOOST_RANDOM_TEST1_PARAMS
27 #define BOOST_RANDOM_TEST1_MIN 0.0
28 #define BOOST_RANDOM_TEST1_MAX 10.0
29 
30 #define BOOST_RANDOM_TEST2_PARAMS (1000.0)
31 #define BOOST_RANDOM_TEST2_MIN 10.0
32 
33 #include "test_distribution.ipp"
34