Displaying 1 result from an estimated 1 matches for "a_in".
Did you mean:
ta_in
2011 Apr 21
0
C source code question (Robustbase edition)
...e if (n == 9) dn = .872;
} else {
if (n % 2 == 1)
dn = n / (n + 1.4);
else /* (n % 2 == 0) */
dn = n / (n + 3.8);
}
return dn * r;
}
else return r;
} /* qn */
/* pull(): auxiliary routine for Qn and Sn
* ====== ======== ---------------------
*/
double pull(double *a_in, int n, int k)
{
/* Finds the k-th order statistic of an array a[] of length n
* --------------------
*/
int j;
double *a, ax;
char* vmax = vmaxget();
a = (double *)R_alloc(n, sizeof(double));
/* Copy a[] and use copy since it will be re-shuffled: */
for (j = 0; j &...