]> henry.ined.fr Git - .git/commitdiff
just a sign error in mlikeli
authorN. Brouard <brouard@ined.fr>
Wed, 20 Nov 2002 07:56:21 +0000 (07:56 +0000)
committerN. Brouard <brouard@ined.fr>
Wed, 20 Nov 2002 07:56:21 +0000 (07:56 +0000)
src/imach.c

index a18c3c772c6f3d3eca2801716532351384d5503a..2597f59ac231a52b0b07820cf5a89d1407292b7f 100644 (file)
@@ -969,7 +969,7 @@ double func( double *x)
        s1=s[mw[mi][i]][i];
        s2=s[mw[mi+1][i]][i];
        bbh=(double)bh[mi][i]/(double)stepm;
-       lli= (savm[s1][s2]>(double)1.e-8 ?(1.+bbh)*log(out[s1][s2])- bbh*log(savm[s1][s2]):log((1.-bbh)*out[s1][s2]));
+       lli= (savm[s1][s2]>(double)1.e-8 ?(1.+bbh)*log(out[s1][s2])- bbh*log(savm[s1][s2]):log((1.+bbh)*out[s1][s2]));
        /*lli= (savm[s1][s2]>1.e-8 ?(1.+bbh)*log(out[s1][s2])- bbh*log(savm[s1][s2]):log((1.-bbh)*out[s1][s2]));*/
        /*lli=(1.+bbh)*log(out[s1][s2])- bbh*log(savm[s1][s2]);*/
        /*if(lli ==000.0)*/