mirror of
https://github.com/boostorg/random.git
synced 2026-02-25 16:42:28 +00:00
Merge random from the trunk.
[SVN r71018]
This commit is contained in:
31
test/test_geometric_distribution.cpp
Normal file
31
test/test_geometric_distribution.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
/* test_geometric_distribution.cpp
|
||||
*
|
||||
* Copyright Steven Watanabe 2011
|
||||
* Distributed under the Boost Software License, Version 1.0. (See
|
||||
* accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
|
||||
#include <boost/random/geometric_distribution.hpp>
|
||||
|
||||
#define BOOST_RANDOM_DISTRIBUTION boost::random::geometric_distribution<>
|
||||
#define BOOST_RANDOM_ARG1 p
|
||||
#define BOOST_RANDOM_ARG1_DEFAULT 0.5
|
||||
#define BOOST_RANDOM_ARG1_VALUE 0.25
|
||||
|
||||
#define BOOST_RANDOM_DIST0_MIN 1
|
||||
#define BOOST_RANDOM_DIST0_MAX (std::numeric_limits<int>::max)()
|
||||
#define BOOST_RANDOM_DIST1_MIN 1
|
||||
#define BOOST_RANDOM_DIST1_MAX (std::numeric_limits<int>::max)()
|
||||
|
||||
#define BOOST_RANDOM_TEST1_PARAMS (0.9999)
|
||||
#define BOOST_RANDOM_TEST1_MIN 0
|
||||
#define BOOST_RANDOM_TEST1_MAX 0
|
||||
|
||||
#define BOOST_RANDOM_TEST2_PARAMS (0.0001)
|
||||
#define BOOST_RANDOM_TEST2_MIN 1
|
||||
|
||||
#include "test_distribution.ipp"
|
||||
Reference in New Issue
Block a user