X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=pkg%2Fsrc%2Ffunctions.c;h=feea3ade92def6f860e0a88f12f7ac0c802f8b54;hb=ef0d907c50abe7c4dc0d3c0e94645b5bf6ef3626;hp=f251eb349fe2be411b05273753ea0b7ebc617ab2;hpb=9a6881ed8a16c31a3dbe995e3b1af76c1db6b5a0;p=morpheus.git diff --git a/pkg/src/functions.c b/pkg/src/functions.c index f251eb3..feea3ad 100644 --- a/pkg/src/functions.c +++ b/pkg/src/functions.c @@ -58,7 +58,59 @@ void Moments_M3(double* X, double* Y, int* pn, int* pd, double* M3) // 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) +//void Compute_Omega(double* X, int* Y, double* M, int* pn, int* pd, double* W) +//{ +// int n=*pn, d=*pd; +// int dim = d + d*d + d*d*d; +// //double* W = (double*)malloc(dim*dim*sizeof(double)); +// +// // (Re)Initialize W: +// for (int j=0; j