ROSS
ross-random.h
Go to the documentation of this file.
1 #ifndef INC_tw_rand_h
2 #define INC_tw_rand_h
3 
4 #define tw_opi 6.28318530718
5 #define tw_rand_unif(G) rng_gen_val(G)
6 #define tw_rand_reverse_unif(G) rng_gen_reverse_val(G)
7 
8 typedef struct tw_rng tw_rng;
9 typedef struct tw_rng_stream tw_rng_stream;
10 
11 /*
12  * Public Function Prototypes
13  */
14 extern tw_rng *tw_rand_init(uint32_t v, uint32_t w);
15 extern void tw_rand_initial_seed(tw_rng_stream * g, tw_lpid id);
16 extern long tw_rand_integer(tw_rng_stream * g, long low, long high);
17 extern unsigned long tw_rand_ulong(tw_rng_stream * g, unsigned long low, unsigned long high);
18 extern long tw_rand_binomial(tw_rng_stream * g, long N, double P);
19 extern double tw_rand_exponential(tw_rng_stream * g, double Lambda);
20 extern double tw_rand_pareto(tw_rng_stream * g, double scale, double shape);
21 extern double tw_rand_gamma(tw_rng_stream * g, double shape, double scale);
22 extern long tw_rand_geometric(tw_rng_stream * g, double P);
23 extern double tw_rand_normal01(tw_rng_stream * g, unsigned int *rng_calls);
24 extern double tw_rand_normal_sd(tw_rng_stream * g, double Mu, double Sd, unsigned int *rng_calls);
25 extern long tw_rand_poisson(tw_rng_stream * g, double Lambda);
26 extern double tw_rand_weibull(tw_rng_stream * g, double mean, double shape);
27 
28 #endif
double tw_rand_gamma(tw_rng_stream *g, double shape, double scale)
Definition: ross-random.c:81
double tw_rand_pareto(tw_rng_stream *g, double scale, double shape)
Definition: ross-random.c:75
double tw_rand_exponential(tw_rng_stream *g, double Lambda)
Definition: ross-random.c:69
static tw_stime mean
Definition: phold.h:37
long tw_rand_integer(tw_rng_stream *g, long low, long high)
Definition: ross-random.c:21
long tw_rand_poisson(tw_rng_stream *g, double Lambda)
Definition: ross-random.c:188
double tw_rand_normal_sd(tw_rng_stream *g, double Mu, double Sd, unsigned int *rng_calls)
Definition: ross-random.c:182
uint64_t tw_lpid
Definition: ross.h:160
double tw_rand_normal01(tw_rng_stream *g, unsigned int *rng_calls)
Definition: ross-random.c:152
long tw_rand_geometric(tw_rng_stream *g, double P)
Definition: ross-random.c:141
unsigned long tw_rand_ulong(tw_rng_stream *g, unsigned long low, unsigned long high)
Definition: ross-random.c:37
double tw_rand_weibull(tw_rng_stream *g, double mean, double shape)
Definition: ross-random.c:215
long tw_rand_binomial(tw_rng_stream *g, long N, double P)
Definition: ross-random.c:53
void tw_rand_initial_seed(tw_rng_stream *g, tw_lpid id)
Definition: rand-clcg4.c:265
tw_rng * tw_rand_init(uint32_t v, uint32_t w)
Definition: ross-random.c:7