Displaying 1 result from an estimated 1 matches for "sd_0".
Did you mean:
sd0
2004 Nov 02
0
how to call function in ../src/main
...t;, $result;
printf "result: $temp \n";
}
test();
It works fine.
But it looks not for calling functions in R/R-1.9.1/src/main
We want to correlation only, so we copy cov.c to cor.c
where use
cor ( int n, double *x, double *y, double *ans ) {
Rboolean cor, kendall, pair, na_fail, sd_0;
int ansmat, method, ncx, ncy;
/* compute correlations if PRIMVAL(op) == 0,
covariances if PRIMVAL(op) != 0 */
cor = 0;
ansmat = 0;
ncx = 1;
ncy = 1;
pair = TRUE;
kendall = FALSE;
cov_pairwise2(n, ncx, ncy, x, y, ans,
&sd_0, co...