X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=pkg%2Fsrc%2Ffunctions.c;h=feea3ade92def6f860e0a88f12f7ac0c802f8b54;hb=074c721aa587d45c4f7ef10f8a28fdc09273d31a;hp=1f355857e28d2510dbe5219942124e25163b1b66;hpb=44559add0e38058d9ce539c4b91246e4a088f67a;p=morpheus.git diff --git a/pkg/src/functions.c b/pkg/src/functions.c index 1f35585..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