#include "ross-base.h"
Go to the source code of this file.
Macros | |
#define | tw_opi 6.28318530718 |
#define | tw_rand_unif(G) |
#define | tw_rand_reverse_unif(G) |
Typedefs | |
typedef struct tw_rng | tw_rng |
typedef struct tw_rng_stream | tw_rng_stream |
Functions | |
tw_rng * | tw_rand_init (uint32_t v, uint32_t w) |
tw_rng * | tw_rand_core_init (uint32_t v, uint32_t w) |
void | tw_rand_initial_seed (tw_rng_stream *g, tw_lpid id, tw_rng *the_rng) |
long | tw_rand_integer (tw_rng_stream *g, long low, long high) |
unsigned long | tw_rand_ulong (tw_rng_stream *g, unsigned long low, unsigned long high) |
long | tw_rand_binomial (tw_rng_stream *g, long N, double P) |
double | tw_rand_exponential (tw_rng_stream *g, double Lambda) |
double | tw_rand_pareto (tw_rng_stream *g, double scale, double shape) |
double | tw_rand_gamma (tw_rng_stream *g, double shape, double scale) |
long | tw_rand_geometric (tw_rng_stream *g, double P) |
double | tw_rand_normal01 (tw_rng_stream *g, unsigned int *rng_calls) |
double | tw_rand_normal_sd (tw_rng_stream *g, double Mu, double Sd, unsigned int *rng_calls) |
long | tw_rand_poisson (tw_rng_stream *g, double Lambda) |
double | tw_rand_weibull (tw_rng_stream *g, double mean, double shape) |
#define tw_opi 6.28318530718 |
Definition at line 6 of file ross-random-internal.h.
Referenced by tw_rand_normal01().
#define tw_rand_reverse_unif | ( | G | ) |
Definition at line 8 of file ross-random-internal.h.
Referenced by phold_event_handler_rc(), and tw_event_rollback().
#define tw_rand_unif | ( | G | ) |
Definition at line 7 of file ross-random-internal.h.
Referenced by phold_event_handler(), phold_pre_run(), tw_event_new_user_prio(), tw_rand_binomial(), tw_rand_exponential(), tw_rand_gamma(), tw_rand_geometric(), tw_rand_integer(), tw_rand_normal01(), tw_rand_pareto(), tw_rand_poisson(), tw_rand_ulong(), and tw_rand_weibull().
typedef struct tw_rng tw_rng |
Definition at line 10 of file ross-random-internal.h.
typedef struct tw_rng_stream tw_rng_stream |
Definition at line 11 of file ross-random-internal.h.
|
extern |
Definition at line 62 of file ross-random-internal.c.
References tw_rand_unif.
|
extern |
Definition at line 16 of file ross-random-internal.c.
References rng_core_init().
Referenced by tw_pe_init().
|
extern |
Definition at line 78 of file ross-random-internal.c.
References tw_rand_unif.
Referenced by phold_event_handler(), phold_init(), and phold_pre_run().
|
extern |
Definition at line 90 of file ross-random-internal.c.
References tw_rand_exponential(), and tw_rand_unif.
|
extern |
Definition at line 150 of file ross-random-internal.c.
References tw_rand_unif.
|
extern |
Definition at line 7 of file ross-random-internal.c.
References rng_init().
Referenced by tw_pe_init().
|
extern |
Definition at line 268 of file rand-clcg4.c.
References tw_rng::avw, clamp_seed(), tw_rng_stream::count, tw_rng_stream::Ig, InitialSeed, tw_rng::m, MultModM(), rng, rng_init_generator(), and tw_rng::seed.
|
extern |
NOTE: Don't pass negative values to low!
Definition at line 30 of file ross-random-internal.c.
References tw_rand_unif.
Referenced by phold_event_handler(), and phold_pre_run().
|
extern |
Definition at line 161 of file ross-random-internal.c.
References tw_error(), TW_LOC, tw_rng_stream::tw_normal_flipflop, tw_rng_stream::tw_normal_u1, tw_rng_stream::tw_normal_u2, tw_opi, and tw_rand_unif.
|
extern |
Definition at line 191 of file ross-random-internal.c.
References tw_rand_normal01().
|
extern |
Definition at line 84 of file ross-random-internal.c.
References tw_rand_unif.
|
extern |
Definition at line 197 of file ross-random-internal.c.
References tw_rand_unif.
|
extern |
Definition at line 46 of file ross-random-internal.c.
References tw_rand_unif.
|
extern |
Definition at line 224 of file ross-random-internal.c.
References mean, and tw_rand_unif.