libcrn
3.9.5
A document image processing library
|
Multivariate random toolbox class. More...
#include <CRNMultivariateRandomTools.h>
Static Public Member Functions | |
static MatrixDouble | NewGaussianSample (const MatrixDouble &Mu, const SquareMatrixDouble &Sigma, size_t n=1, size_t m=100, bool reseed=true) |
Creates a data sample following a Gaussian probability law. More... | |
static MatrixDouble | NewGaussianSample (const MultivariateGaussianPDF &P, size_t n=1, size_t m=100, bool reseed=true) |
Creates a data sample following a Gaussian probability law. More... | |
static MatrixDouble | NewGaussianMixtureSample (const MultivariateGaussianMixture &Mx, size_t n=1, size_t m=100, bool reseed=true) |
Creates a data sample following a Gaussian probability law. More... | |
Multivariate random toolbox class.
Tools for random samples
Definition at line 43 of file CRNMultivariateRandomTools.h.
|
static |
Creates a data sample following a Gaussian probability law.
Simulate a gaussian mixture random sample
With default values mu = 0 and sigma = 1, we obtain the normal random sample
[in] | Mx | MultivariateGaussianMixture* |
[in] | n | size of gaussian sample (default = 1) |
[in] | m | size of temporary uniform sample (default = 100) |
[in] | reseed | shall the random seed be reinitialized? |
Definition at line 134 of file CRNMultivariateRandomTools.cpp.
|
static |
Creates a data sample following a Gaussian probability law.
Simulates a Gaussian random sample
With default values mu = 0 and sigma = 1, we obtain the normal random sample
[in] | Mu | mean of Gaussian distribution |
[in] | Sigma | deviation of Gaussian distribution |
[in] | n | size of Gaussian sample (default = 1) |
[in] | m | size of temporary uniform sample (default = 100) |
[in] | reseed | shall the random seed be reinitialized? |
Definition at line 45 of file CRNMultivariateRandomTools.cpp.
|
static |
Creates a data sample following a Gaussian probability law.
Simulate a gaussian random sample
With default values mu = 0 and sigma = 1, we obtain the normal random sample
[in] | P | a multivariate gaussian distribution function |
[in] | n | size of gaussian sample (default = 1) |
[in] | m | size of temporary uniform sample (default = 100) |
[in] | reseed | shall the random seed be reinitialized? |
Definition at line 77 of file CRNMultivariateRandomTools.cpp.