Functions | |
void | mt19937_srand (unsigned int seed) |
void | mt19937_srand_by_array (unsigned int init_key[], unsigned int key_length) |
unsigned int | mt19937_rand_int32 (void) |
int | mt19937_rand_int31 (void) |
double | mt19937_rand_real1 (void) |
double | mt19937_rand_real2 (void) |
double | mt19937_rand_real3 (void) |
double | mt19937_rand_res53 (void) |
void | it_randomize (void) |
void | it_seed (int seed) |
double | it_rand (void) |
double | it_randn (void) |
double | it_randpdf (double a, double b, it_function_t pdf, it_args_t args) |
int | it_rand_memoryless (vec pdf) |
double it_rand | ( | void | ) |
Definition at line 609 of file random.c.
References mt19937_rand().
Referenced by channel_bsc(), it_rand_memoryless(), it_randpdf(), ivec_new_perm(), main(), mat_new_rand(), mat_rand(), source_binary(), source_memoryless(), source_uniform(), source_uniform_int(), and vec_rand().
int it_rand_memoryless | ( | vec | ) |
Definition at line 680 of file random.c.
References it_rand(), vec_cum_sum(), vec_delete(), vec_ins, and vec_length().
double it_randn | ( | void | ) |
Definition at line 619 of file random.c.
References mt19937_rand_int32(), mt19937_rand_real3(), zfn, ZIGR, ZIGRINV, zkn, and zwn.
Referenced by fpICA(), main(), mat_new_randn(), mat_randn(), source_gaussian(), and vec_randn().
double it_randpdf | ( | double | a, | |
double | b, | |||
it_function_t | pdf, | |||
it_args_t | args | |||
) |
void it_seed | ( | int | seed | ) |
int mt19937_rand_int31 | ( | void | ) |
unsigned int mt19937_rand_int32 | ( | void | ) |
Definition at line 465 of file random.c.
References left, mt19937_next_state(), and next.
Referenced by it_randn(), and mt19937_rand_res53().
double mt19937_rand_real1 | ( | void | ) |
Definition at line 501 of file random.c.
References left, mt19937_next_state(), and next.
Referenced by getSamples().
double mt19937_rand_real2 | ( | void | ) |
Definition at line 520 of file random.c.
References left, mt19937_next_state(), and next.
Referenced by mt19937_rand().
double mt19937_rand_real3 | ( | void | ) |
Definition at line 539 of file random.c.
References left, mt19937_next_state(), and next.
Referenced by it_randn().
double mt19937_rand_res53 | ( | void | ) |
void mt19937_srand | ( | unsigned int | seed | ) |
Definition at line 380 of file random.c.
References idx, initf, left, N, and state.
Referenced by it_seed(), mt19937_next_state(), and mt19937_srand_by_array().
void mt19937_srand_by_array | ( | unsigned int | init_key[], | |
unsigned int | key_length | |||
) |
|
|