test_bernoulli_distribution.cpp 885 B

1234567891011121314151617181920212223242526272829303132
  1. /* test_bernoulli_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. #include <boost/random/bernoulli_distribution.hpp>
  12. #define BOOST_RANDOM_DISTRIBUTION boost::random::bernoulli_distribution<>
  13. #define BOOST_RANDOM_ARG1 p
  14. #define BOOST_RANDOM_ARG1_DEFAULT 0.5
  15. #define BOOST_RANDOM_ARG1_VALUE 0.25
  16. #define BOOST_RANDOM_DIST0_MIN false
  17. #define BOOST_RANDOM_DIST0_MAX true
  18. #define BOOST_RANDOM_DIST1_MIN false
  19. #define BOOST_RANDOM_DIST1_MAX true
  20. #define BOOST_RANDOM_TEST1_PARAMS (0.0)
  21. #define BOOST_RANDOM_TEST1_MIN false
  22. #define BOOST_RANDOM_TEST1_MAX false
  23. #define BOOST_RANDOM_TEST2_PARAMS (1.0)
  24. #define BOOST_RANDOM_TEST2_MIN true
  25. #define BOOST_RANDOM_TEST2_MAX true
  26. #include "test_distribution.ipp"