sp_random.h

Go to the documentation of this file.
00001 
00003 /* 
00004    FAU Discrete Event System Simulator 
00005 
00006    Copyright (C) 2007  Christoph Doerr
00007    Exclusive copyright is granted to Thomas Moor
00008 
00009 */
00010 
00011 #ifndef FAUDES_SP_RANDOM_H
00012 #define FAUDES_SP_RANDOM_H
00013 
00014 #include "tp_timeinterval.h"
00015 #include "sp_executor.h"
00016 
00017 
00018 namespace faudes {
00019 
00128 void ran_plant_seeds(long x);
00129 
00134 void ran_select_stream(int index);
00135 
00141 void ran_put_seed(long seed);
00142 
00148 void ran_init(long seed);
00149 
00159 double ran(void);
00160 
00161 
00172 double ran_uniform(double a, double b);
00173 
00184 long ran_uniform_int(long a, long b);
00185 
00194 double ran_exponential(double mu);
00195   
00206 double ran_exponential(double mu, tpTime::Type tossLB, tpTime::Type tossUB);
00207 
00220 double ran_gauss(double mu, double sigma, tpTime::Type tossLB, tpTime::Type tossUB);
00221 
00229 double ran_gaussian_cdf_P(double x);
00230 
00234 } // namespace
00235 
00236 
00237 #define FAUDES_STOCHRAN_H
00238 #endif

Generated on Mon Nov 10 08:13:15 2008 for libFAUDES 2.11v by  doxygen 1.4.4