1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add random::poisson_distribution

This commit is contained in:
bolero-MURAKAMI 2015-04-10 15:40:12 +09:00
parent befe29adf0
commit 9bcc98cb29
5 changed files with 448 additions and 2 deletions

View file

@ -0,0 +1,28 @@
/*=============================================================================
Copyright (c) 2011-2015 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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)
=============================================================================*/
#ifndef SPROUT_LIBS_RANDOM_TEST_POISSON_DISTRIBUTION_CPP
#define SPROUT_LIBS_RANDOM_TEST_POISSON_DISTRIBUTION_CPP
#include <sprout/random/poisson_distribution.hpp>
#include "./distribution_generic.hpp"
#include <testspr/tools.hpp>
namespace testspr {
void random_poisson_distribution_test() {
using namespace sprout;
testspr::random_distribution_test_generic<sprout::random::poisson_distribution<> >();
}
} // namespace testspr
#ifndef TESTSPR_CPP_INCLUDE
# define TESTSPR_TEST_FUNCTION testspr::random_poisson_distribution_test
# include <testspr/include_main.hpp>
#endif
#endif // #ifndef SPROUT_LIBS_RANDOM_TEST_POISSON_DISTRIBUTION_CPP

View file

@ -26,6 +26,7 @@
#include "./bernoulli_distribution.cpp"
#include "./binomial_distribution.cpp"
#include "./geometric_distribution.cpp"
#include "./poisson_distribution.cpp"
#include "./normal_distribution.cpp"
#include <testspr/tools.hpp>
@ -50,6 +51,7 @@ namespace testspr {
testspr::random_bernoulli_distribution_test();
testspr::random_binomial_distribution_test();
testspr::random_geometric_distribution_test();
testspr::random_poisson_distribution_test();
testspr::random_normal_distribution_test();
}
} // namespace testspr