| RcdMathLib_doc
    Open Source Library  for Linear and Non-linear Algebra | 
Generating normally distributed random numbers. More...
Go to the source code of this file.
| Functions | |
| double | get_norm_distr_rand_num (double mean_val, double std_dev_val) | 
| Get a normally distributed random number by applying the Box–Muller method.  More... | |
| double | get_rand_num (int initial_seed_val) | 
| Generate uniform (0.0, 1.0) random numbers by using the Linear Congruential Generator (LGC) algorithm.  More... | |
Generating normally distributed random numbers.
The generation of normally distributed random numbers is implemented by using the Box–Muller method.
Definition in file norm_dist_rnd_generator.c.
| double get_norm_distr_rand_num | ( | double | mean_val, | 
| double | std_dev_val | ||
| ) | 
Get a normally distributed random number by applying the Box–Muller method.
| [in] | mean_val | mean value. | 
| [in] | std_dev_val | standard deviation. | 
Definition at line 40 of file norm_dist_rnd_generator.c.
References get_rand_num(), and PI.
Referenced by sim_UWB_dist().
| double get_rand_num | ( | int | initial_seed_val | ) | 
Generate uniform (0.0, 1.0) random numbers by using the Linear Congruential Generator (LGC) algorithm.
| [in] | initial_seed_val | initial seed value. | 
Definition at line 80 of file norm_dist_rnd_generator.c.
Referenced by get_norm_distr_rand_num(), and sim_UWB_dist().