X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=pkg%2Fsrc%2Ffunctions.c;h=68f1b79d60369d596a21c658e2c8e1f5a3aa2213;hb=4bf8494d8484be5eab39dd2a83e649678a2de713;hp=8731b9f99c6dffccdef2be2521a396fd0b2d9a1c;hpb=d08fef424150599b8095727c0f9870ca9535fb65;p=morpheus.git diff --git a/pkg/src/functions.c b/pkg/src/functions.c index 8731b9f..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 + int dim = d + d*d + d*d*d; + +//printf("X: \n"); +//for (int kk=0; kk