GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 }
double * kotz_families(double *x, int n)
Definition: kotz.c:5
double * anderson_darling(double *x, int n)
Definition: andrsndn.c:7
double * dagostino_d(double *x, int n)
Definition: dagstndn.c:7
double * durbins_exact(double *x, int n)
Definition: durbins.c:8
double * anderson_darling_exp(double *x, int n)
Definition: andrsnde.c:7
double * cramer_von_mises(double *x, int n)
Definition: cvmw2n.c:7
double * watson_u2(double *x, int n)
Definition: watsonun.c:7
int y
Definition: plot.c:34
double * geary_test(double *x, int n)
Definition: geary.c:5
double * kolmogorov_smirnov(double *x, int n)
Definition: ksn.c:7
double * omnibus_moments(double *x, int n)
Definition: omnibus.c:5
int main(int argc, char *argv[])
Definition: gem/main.c:302
double * shapiro_wilk_exp(double *x, int n)
Definition: shapiroe.c:5
double * kuipers_v_exp(double *x, int n)
Definition: kuiprsve.c:7
double * shapiro_francia(double *x, int n)
Definition: shapiro2.c:10
double * kuipers_v(double *x, int n)
Definition: kuiprsvn.c:7
double * cramer_von_mises_exp(double *x, int n)
Definition: cvmw2e.c:7
double * watson_u2_exp(double *x, int n)
Definition: watsonue.c:7
double * chi_square(double *x, int n)
Definition: chisqn.c:7
double * chi_square_exp(double *x, int n)
Definition: chisqe.c:6
double * shapiro_wilk(double *x, int n)
Definition: shapiro1.c:7
double * kolmogorov_smirnov_exp(double *x, int n)
Definition: kse.c:7
int n
Definition: dataquad.c:291