ROSS
ross-random-internal.h
Go to the documentation of this file.
1#ifndef INC_tw_random_internal_h
2#define INC_tw_random_internal_h
3
4#include "ross-base.h"
5
6#define tw_opi 6.28318530718
7#define tw_rand_unif(G) rng_gen_val(G)
8#define tw_rand_reverse_unif(G) rng_gen_reverse_val(G)
9
10typedef struct tw_rng tw_rng;
11typedef struct tw_rng_stream tw_rng_stream;
12
13/*
14 * Public Function Prototypes
15 */
16extern tw_rng *tw_rand_init(uint32_t v, uint32_t w);
17extern tw_rng *tw_rand_core_init(uint32_t v, uint32_t w);
18extern void tw_rand_initial_seed(tw_rng_stream * g, tw_lpid id, tw_rng * the_rng);
19extern long tw_rand_integer(tw_rng_stream * g, long low, long high);
20extern unsigned long tw_rand_ulong(tw_rng_stream * g, unsigned long low, unsigned long high);
21extern long tw_rand_binomial(tw_rng_stream * g, long N, double P);
22extern double tw_rand_exponential(tw_rng_stream * g, double Lambda);
23extern double tw_rand_pareto(tw_rng_stream * g, double scale, double shape);
24extern double tw_rand_gamma(tw_rng_stream * g, double shape, double scale);
25extern long tw_rand_geometric(tw_rng_stream * g, double P);
26extern double tw_rand_normal01(tw_rng_stream * g, unsigned int *rng_calls);
27extern double tw_rand_normal_sd(tw_rng_stream * g, double Mu, double Sd, unsigned int *rng_calls);
28extern long tw_rand_poisson(tw_rng_stream * g, double Lambda);
29extern double tw_rand_weibull(tw_rng_stream * g, double mean, double shape);
30
31#endif /* INC_tw_random_internal_h */
uint64_t tw_lpid
Definition ross-base.h:49
tw_rng * tw_rand_core_init(uint32_t v, uint32_t w)
double tw_rand_gamma(tw_rng_stream *g, double shape, double scale)
double tw_rand_normal_sd(tw_rng_stream *g, double Mu, double Sd, unsigned int *rng_calls)
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_pareto(tw_rng_stream *g, double scale, double shape)
long tw_rand_geometric(tw_rng_stream *g, double P)
double tw_rand_weibull(tw_rng_stream *g, double mean, double shape)
tw_rng * tw_rand_init(uint32_t v, uint32_t w)
double tw_rand_exponential(tw_rng_stream *g, double Lambda)
long tw_rand_poisson(tw_rng_stream *g, double Lambda)
double tw_rand_normal01(tw_rng_stream *g, unsigned int *rng_calls)
void tw_rand_initial_seed(tw_rng_stream *g, tw_lpid id, tw_rng *the_rng)
Definition rand-clcg4.c:268
static tw_stime mean
Definition phold.h:37