38#define ytStat_PI 3.14159265358979323846264
41void ytStat_mvmean(
const double * X,
int n,
int p,
int N,
double * mean);
42void ytStat_mvcov(
const double * X,
int n,
int p,
int N,
const double * m,
45 const double * u,
const double * Sinv,
48 const double * u,
const double * Sinv,
void ytStat_mvmean(const double *X, int n, int p, int N, double *mean)
Calculates the mean of all the variables.
Definition: ytStat.c:68
double ytStat_mvdnorm(const double *x, int p, int N, const double *u, const double *Sinv, double detS)
Calculates the density of the multivariate normal distribution.
Definition: ytStat.c:125
double ytStat_logmvdnorm(const double *x, int p, int N, const double *u, const double *Sinv, double logDetS)
Calculates the log of multivariate normal distribution density.
Definition: ytStat.c:162
void ytStat_mvcov(const double *X, int n, int p, int N, const double *m, double *S)
Calculates the covariance matrix.
Definition: ytStat.c:94
double ytStat_dnorm(double x, double m, double sd)
Calculates the density function of the normal distribution.
Definition: ytStat.c:55