![]() |
CPP Linear Algebra ToolBox
0.1.0
|
#include "../include/header/utils.h"
Functions | |
| std::mt19937 | gen (rd()) |
| double | uniform_distribution (double a=0., double b=1.) |
| Generate a random number using the uniform distribution. More... | |
| double | normal_distribution (double m=0., double s=1.) |
| Generate a random umber using the Gaussian distribution. More... | |
Variables | |
| std::random_device | rd |
| std::mt19937 gen | ( | rd() | ) |
| double normal_distribution | ( | double | m = 0., |
| double | s = 1. |
||
| ) |
Generate a random umber using the Gaussian distribution.
| m | Mean value of the distribution, default \(m=0\). |
| s | Standart deviation of the distribution, default \(s=1\). |
| double uniform_distribution | ( | double | a = 0., |
| double | b = 1. |
||
| ) |
Generate a random number using the uniform distribution.
| a | Lower bound of the interval, default \(a=0\) |
| b | Upper bound of the interval ( \(b > a\)), default \(b=1\). |
| std::random_device rd |