Generates an array of random numbers from a multivariate Normal distribution, seeds and generator number passed explicitly
int mvnrnd( double * v, uint n, int nDim, const double * pMean, const double * mCov )
Return NE_NOERROR(0) on success, otherwise error.
EX1
void mvnrnd_ex1() { int n = 10; vector v(n); matrix m(n, n); vector vm(n); for ( int ii = 0; ii < n; ii++ ) { vm[ii] = rnd(); for ( int jj = 0; jj < n; jj++ ) m[ii][jj] = rnd(); } int nRet = mvnrnd(v, n, 2, vm, m); return; }
binornd
origin.h