A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure that the random generator respects the provided mean and standard deviation...
[simgrid.git]
/
src
/
include
/
surf
/
random_mgr.h
diff --git
a/src/include/surf/random_mgr.h
b/src/include/surf/random_mgr.h
index d839d55a64cbcdce1629ee816ca03cf32c70d2af..7e0d4956af9833381a343512219459888bdfd4b5 100644
(file)
--- a/
src/include/surf/random_mgr.h
+++ b/
src/include/surf/random_mgr.h
@@
-13,7
+13,8
@@
typedef enum {NONE, DRAND48, RAND} Generator;
typedef struct random_data_desc {
long int seed;
typedef struct random_data_desc {
long int seed;
- double max, min, mean, stdDeviation;
+ double max, min;
+ double mean, std; /* note: mean and standard deviation are normalized */
Generator generator;
} s_random_data_t, *random_data_t;
Generator generator;
} s_random_data_t, *random_data_t;