81 #ifndef SHARK_RNG_GLOBALRNG_H 82 #define SHARK_RNG_GLOBALRNG_H 106 #include <boost/random.hpp> 116 template<
typename RNG>
120 typedef RNG rng_type;
148 static double logNormal(
double location=0.0,
double scale=1.0) {
160 static double cauchy(
double median=0.0,
double gamma=1.0) {
166 static int geom(
double p=0.0) {
184 static double gam(
double k,
double theta) {
190 static std::vector<double>
dir(
size_t n,
double alpha) {
195 static std::vector<double>
dir(
const std::vector<double>& alphas) {
201 static void seed(
typename rng_type::result_type s ) {
208 #define ANNOUNCE_SHARK_RNG( boost_rng_type, shark_rng_name )\ 209 typedef BaseRng< boost_rng_type > shark_rng_name; \