test_chi_squared.cpp 794 B

123456789101112131415161718192021222324
  1. /* test_chi_squared.cpp
  2. *
  3. * Copyright Steven Watanabe 2011
  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/chi_squared_distribution.hpp>
  12. #include <boost/random/uniform_real.hpp>
  13. #include <boost/math/distributions/chi_squared.hpp>
  14. #define BOOST_RANDOM_DISTRIBUTION boost::random::chi_squared_distribution<>
  15. #define BOOST_RANDOM_DISTRIBUTION_NAME chi_squared
  16. #define BOOST_MATH_DISTRIBUTION boost::math::chi_squared
  17. #define BOOST_RANDOM_ARG1_TYPE double
  18. #define BOOST_RANDOM_ARG1_NAME n
  19. #define BOOST_RANDOM_ARG1_DEFAULT 1000.0
  20. #define BOOST_RANDOM_ARG1_DISTRIBUTION(n) boost::uniform_real<>(0.00001, n)
  21. #include "test_real_distribution.ipp"