X-Git-Url: https://git.auder.net/?p=morpheus.git;a=blobdiff_plain;f=pkg%2Fsrc%2Ffunctions.c;h=68f1b79d60369d596a21c658e2c8e1f5a3aa2213;hp=c8d51dd77b806949eee4badc8c61786f016c07d6;hb=4bf8494d8484be5eab39dd2a83e649678a2de713;hpb=0a630686751ef8baa2c170067b981d2a219a9224 diff --git a/pkg/src/functions.c b/pkg/src/functions.c index c8d51dd..68f1b79 100644 --- a/pkg/src/functions.c +++ b/pkg/src/functions.c @@ -54,19 +54,39 @@ void Moments_M3(double* X, double* Y, int* pn, int* pd, double* M3) } } +#include + // W = 1/N sum( t(g(Zi,theta)) g(Zi,theta) ) // with g(Zi, theta) = i-th contribution to all moments (size dim) - real moments void Compute_Omega(double* X, double* Y, double* M, int* pn, int* pd, double* W) { int n=*pn, d=*pd; int dim = d + d*d + d*d*d; + +//printf("X: \n"); +//for (int kk=0; kk