7 double diff, mean = 0., fssm, tssm, sum_cube = 0., sum_four = 0.,
12 for (i = 0; i <
n; ++i)
17 for (i = 0; i <
n; ++i) {
19 sum_sq += diff * diff;
20 sum_cube += diff * diff * diff;
21 sum_four += diff * diff * diff * diff;
27 tssm = sqrt((
double)n) * sum_cube / pow(sum_sq, 1.5);
28 fssm = n * sum_four / (sum_sq * sum_sq);
32 " TESTS OF COMPOSITE DISTRIBUTIONAL HYPOTHESES\n");
33 fprintf(stdout,
" TEST1 TSM =%10.4f FSM =%10.4f\n", tssm, fssm);
double * omnibus_moments(double *x, int n)