[ Project home | Index ]

dist_normal.ox

The multivariate Normal distribution mathcal{N}(mu, Sigma). This distribution has the density function f_X(x) = |Sigma|^{-1/2}(2pi)^{-n/2}expleft(-frac{1}{2}(x-mu)'Sigma^{-1}(x-mu)right), where x and mu are n-vectors, and Sigma is an ntimes n positive definite matrix.
Author:
Y. Zwols
Example:
To generate 20 samples from a standard normal distribution, the following code can be used:
decl Dist = new NormalDistribution(0, 1);
decl Z = Dist.Generate(20);

NormalDistribution : Distribution

Methods
Dim Gives the dimension n of the distribution
Generate Generates a random sample from the distribution
NormalDistribution Create a new instance of the NormalDistribution class with parameters mu and Sigma
Inherited methods from Distribution:
Dim, Generate, isDistribution

NormalDistribution details

Dim

NormalDistribution :: Dim ( )
Gives the dimension n of the distribution

Generate

NormalDistribution :: Generate ( const cT )
Generates a random sample from the distribution
Parameters:
cT The demanded number of samples

NormalDistribution

NormalDistribution :: NormalDistribution ( const vMu , const mSigma )
Create a new instance of the NormalDistribution class with parameters mu and Sigma