8 double mean,
b, s1, xs, sum1 = 0.0, sum2 = 0.0;
11 for (i = 0; i < n; ++i)
12 if (i == 0 || xs > x[i])
15 for (i = 0; i < n; ++i) {
20 s1 = sum2 - sum1 * sum1 / n;
22 b = (mean - xs) * sqrt((
double)n / (n - 1.0));
26 fprintf(stdout,
" TEST15 SW(E) =%10.4f\n", y[0]);
float mean(IClass_statistics *statistics, int band)
Helper function for computing mean.
double * Cdhc_shapiro_wilk_exp(double *x, int n)