1 /* test_triangle_distribution.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 12 #include <boost/random/triangle_distribution.hpp> 13 #include <limits> 14 15 #define BOOST_RANDOM_DISTRIBUTION boost::random::triangle_distribution<> 16 #define BOOST_RANDOM_ARG1 a 17 #define BOOST_RANDOM_ARG2 b 18 #define BOOST_RANDOM_ARG3 c 19 #define BOOST_RANDOM_ARG1_DEFAULT 0.0 20 #define BOOST_RANDOM_ARG2_DEFAULT 0.5 21 #define BOOST_RANDOM_ARG3_DEFAULT 1.0 22 #define BOOST_RANDOM_ARG1_VALUE -0.5 23 #define BOOST_RANDOM_ARG2_VALUE 0.25 24 #define BOOST_RANDOM_ARG3_VALUE 1.5 25 26 #define BOOST_RANDOM_DIST0_MIN 0.0 27 #define BOOST_RANDOM_DIST0_MAX 1.0 28 #define BOOST_RANDOM_DIST1_MIN -0.5 29 #define BOOST_RANDOM_DIST1_MAX 1.0 30 #define BOOST_RANDOM_DIST2_MIN -0.5 31 #define BOOST_RANDOM_DIST2_MAX 1.0 32 #define BOOST_RANDOM_DIST3_MIN -0.5 33 #define BOOST_RANDOM_DIST3_MAX 1.5 34 35 #define BOOST_RANDOM_TEST1_PARAMS (-1, -0.5, 0) 36 #define BOOST_RANDOM_TEST1_MAX 0 37 38 #define BOOST_RANDOM_TEST2_PARAMS (0, 0.5, 1) 39 #define BOOST_RANDOM_TEST2_MIN 0 40 41 #include "test_distribution.ipp" 42