ARB
|
#include <cmath>
#include <ctime>
#include <algorithm>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_real.hpp>
#include <boost/random/variate_generator.hpp>
#include "gb_local.h"
Go to the source code of this file.
Classes | |
class | RandomNumberGenerator |
Functions | |
double | GB_log_fak (int n) |
void | GB_random_seed (unsigned seed) |
int | GB_random (int range) |
Variables | |
static RandomNumberGenerator | gen (time(NULp)) |
double GB_log_fak | ( | int | n | ) |
Definition at line 21 of file admath.cxx.
References ARB_realloc(), gb_assert, max, and NULp.
Referenced by ap_calc_bootstrap_remark_sub().
void GB_random_seed | ( | unsigned | seed | ) |
normally you should not use GB_random_seed. Use it only to reproduce some pseudo-random result (e.g. in unittests)
Definition at line 80 of file admath.cxx.
References gen, and RandomNumberGenerator::reseed().
Definition at line 88 of file admath.cxx.
References gen, and RandomNumberGenerator::get_rand().
Referenced by AWTC_generate_random_name(), AP_filter::enable_bootstrap(), filter_seq(), gb_make_main_idx(), GBT_create_unique_item_identifier(), get_random(), and AP_tree_edge::mixTree().
|
static |
Referenced by GB_random(), and GB_random_seed().