Displaying 1 result from an estimated 1 matches for "m1_stat".
Did you mean:
c_stat
2009 Apr 03
1
Hello! I got error in C - R
...= 1;
}
}
}
}
for(i = 1; i < *n; 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...