X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=src%2Fsources%2Fselectiontotale.c;h=04ec0a4bce2a1b5b8316c9dd049d3b7ea93ab95d;hb=aa8df014ec50b2569f03eb81de720355c77633ea;hp=e7e32c839264e9627df0dd0038df7b0eb0799365;hpb=8e92c49c15bdacebf46190e7c8279bd227873928;p=valse.git diff --git a/src/sources/selectiontotale.c b/src/sources/selectiontotale.c index e7e32c8..04ec0a4 100644 --- a/src/sources/selectiontotale.c +++ b/src/sources/selectiontotale.c @@ -1,10 +1,11 @@ #include #include +#include #include "EMGLLF.h" #include "utils.h" // Main job on raw inputs (after transformation from mxArray) -void selectiontotale( +void selectiontotale_core( // IN parameters const double* phiInit, // parametre initial de moyenne renormalisé const double* rhoInit, // parametre initial de variance renormalisé @@ -55,7 +56,7 @@ void selectiontotale( double* pi = (double*)malloc(k*sizeof(double)); double* LLF = (double*)malloc(maxi*sizeof(double)); double* S = (double*)malloc(p*m*k*sizeof(double)); - EMGLLF(phiInit,rhoInit,piInit,gamInit,mini,maxi,gamma,glambda[lambdaIndex],X,Y,tau, + EMGLLF_core(phiInit,rhoInit,piInit,gamInit,mini,maxi,gamma,glambda[lambdaIndex],X,Y,tau, phi,rho,pi,LLF,S, n,p,m,k); free(LLF);