search for: mh_ratio

Displaying 1 result from an estimated 1 matches for "mh_ratio".

Did you mean: hratio
2009 Apr 03
1
Hello! I got error in C - R
...; i++) { for(j = 0; j < i; j++) { X[j * *n + i] = 0; } } for(i = 0; i < *length_X; i++) { out[i] = (double)X[i]; } free(M1); free(M2); return; } int MH_Result(double *theta_new, int n_para, int *M1, int *M2, int n) { double *M1_STAT, *M2_STAT; double pi_Num, pi_Denom, MH_Ratio, v; M1_STAT = (double *)calloc( n_para, sizeof( double ) ); M2_STAT = (double *)calloc( n_para, sizeof( double ) ); M1_STAT[0] = Count_Edges(M1, n); M2_STAT[0] = Count_Edges(M2, n); M1_STAT[1] = Cal_GWD(M1, n); M2_STAT[1] = Cal_GWD(M2, n); pi_Num = Inner_Product(theta_new, M1_STAT, n_par...