<< CL_sphHarmVal Math CL_stumpC >>

CelestLab >> Math > CL_stat

CL_stat

Statistics on samples

Calling Sequence

[meanv,covm] = CL_stat(samples)

Description

Parameters

samples:

Set of drawn vectors. Each vector (= column vector) is made of P indidual variables. The number of samples (N) is the number of columns. (PxN)

meanv:

Estimated mean value (Px1)

covm:

Estimated covariance matrix (PxP)

Authors

See also

Examples

// 2 independent random variables
// (Gaussian law, mean = 0, stdev = 1)
samples = grand(2,1000,"nor", 0, 1);
[meanv,covm] = CL_stat(samples)
[cor,sd] = CL_cov2cor(covm)

Report an issue
<< CL_sphHarmVal Math CL_stumpC >>