RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
norm_dist_rnd_generator.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
3
* 2020 Freie Universität Berlin
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser General
6
* Public License v2.1. See the file LICENSE in the top level directory for more
7
* details.
8
*/
9
24
// COMBINATORICS_H_
25
26
#ifndef NORM_DIST_RND_GENERATOR_H_
27
#define NORM_DIST_RND_GENERATOR_H_
28
33
#define PI 3.14159265
34
35
double
get_norm_distr_rand_num
(
double
mean,
double
std_dev);
36
double
get_rand_num
(
int
seed);
37
38
39
#endif
/* NORM_DIST_RND_GENERATOR_H_ */
get_rand_num
double get_rand_num(int seed)
Generate uniform (0.0, 1.0) random numbers by using the Linear Congruential Generator (LGC) algorithm...
Definition:
norm_dist_rnd_generator.c:80
get_norm_distr_rand_num
double get_norm_distr_rand_num(double mean, double std_dev)
Get a normally distributed random number by applying the Box–Muller method.
Definition:
norm_dist_rnd_generator.c:40
linear_algebra
utilities
include
norm_dist_rnd_generator.h
Generated by
1.8.16