GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
c-drive.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <grass/cdhc.h>
4 
5 
6 int main(int argc, char **argv)
7 {
8  double x[1000];
9  double *y;
10  int n = 0;
11 
12  while (scanf("%lf", &x[n++]) != EOF) ;
13  n--;
14 
15  fprintf(stdout, "N=%d\n", n);
16  fprintf(stdout, "*y=%ld\n", y);
17  y = omnibus_moments(x, n);
18  fprintf(stdout, "*y=%ld\n", y);
19  y = geary_test(x, n);
20  fprintf(stdout, "*y=%ld\n", y);
21  y = dagostino_d(x, n);
22  fprintf(stdout, "y=%g\n", y[1]);
23  y = kuipers_v(x, n);
24  y = watson_u2(x, n);
25  y = durbins_exact(x, n);
26  y = anderson_darling(x, n);
27  y = cramer_von_mises(x, n);
28 
29  /* for ks and lillefors, the discrepancy seems to come
30  in in computing the sum of x*x */
31 
32  y = kolmogorov_smirnov(x, n);
33  y = chi_square(x, n);
34  y = shapiro_wilk(x, n);
35  y = shapiro_francia(x, n);
36  y = shapiro_wilk_exp(x, n);
37  y = cramer_von_mises_exp(x, n);
38  y = kolmogorov_smirnov_exp(x, n);
39  y = kuipers_v_exp(x, n);
40  y = watson_u2_exp(x, n);
41  y = anderson_darling_exp(x, n);
42  y = chi_square_exp(x, n);
43  y = mod_maxlik_ratio(x, n);
44  y = coeff_variation(x, n);
45  y = kotz_families(x, n);
46 
47  return EXIT_SUCCESS;
48 }