mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
move textspr/sprout/* -> libs/<libname>/test/*
fix binomial_distribution
This commit is contained in:
parent
237ec76266
commit
0ceabb5b9b
107 changed files with 1228 additions and 840 deletions
55
libs/random/test/random.cpp
Normal file
55
libs/random/test/random.cpp
Normal file
|
@ -0,0 +1,55 @@
|
|||
#ifndef SPROUT_LIBS_RANDOM_TEST_RANDOM_CPP
|
||||
#define SPROUT_LIBS_RANDOM_TEST_RANDOM_CPP
|
||||
|
||||
#ifndef TESTSPR_CPP_INCLUDE
|
||||
# define TESTSPR_CPP_INCLUDE_DISABLE_SPROUT_LIBS_RANDOM_TEST_RANDOM_CPP
|
||||
# define TESTSPR_CPP_INCLUDE
|
||||
#endif
|
||||
|
||||
#include "./linear_congruential.cpp"
|
||||
#include "./additive_combine.cpp"
|
||||
#include "./shuffle_order.cpp"
|
||||
#include "./inversive_congruential.cpp"
|
||||
#include "./taus88.cpp"
|
||||
//#include "./mersenne_twister.cpp"
|
||||
#include "./uniform_smallint.cpp"
|
||||
#include "./uniform_int_distribution.cpp"
|
||||
#include "./uniform_01.cpp"
|
||||
#include "./uniform_real_distribution.cpp"
|
||||
#include "./bernoulli_distribution.cpp"
|
||||
#include "./binomial_distribution.cpp"
|
||||
#include "./geometric_distribution.cpp"
|
||||
#include "./normal_distribution.cpp"
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
#ifdef TESTSPR_CPP_INCLUDE_DISABLE_SPROUT_LIBS_RANDOM_TEST_RANDOM_CPP
|
||||
# undef TESTSPR_CPP_INCLUDE
|
||||
#endif
|
||||
|
||||
namespace testspr {
|
||||
void random_test() {
|
||||
using namespace sprout;
|
||||
|
||||
testspr::random_linear_congruential_test();
|
||||
testspr::random_additive_combine_test();
|
||||
testspr::random_shuffle_order_test();
|
||||
testspr::random_inversive_congruential_test();
|
||||
testspr::random_taus88_test();
|
||||
//testspr::random_mersenne_twister_test();
|
||||
testspr::random_uniform_smallint_test();
|
||||
testspr::random_uniform_int_distribution_test();
|
||||
testspr::random_uniform_01_test();
|
||||
testspr::random_uniform_real_distribution_test();
|
||||
testspr::random_bernoulli_distribution_test();
|
||||
testspr::random_binomial_distribution_test();
|
||||
testspr::random_geometric_distribution_test();
|
||||
testspr::random_normal_distribution_test();
|
||||
}
|
||||
} // namespace testspr
|
||||
|
||||
#ifndef TESTSPR_CPP_INCLUDE
|
||||
# define TESTSPR_TEST_FUNCTION testspr::random_test
|
||||
# include <testspr/include_main.hpp>
|
||||
#endif
|
||||
|
||||
#endif // #ifndef SPROUT_LIBS_RANDOM_TEST_RANDOM_CPP
|
Loading…
Add table
Add a link
Reference in a new issue