GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
kuiprsvn.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <math.h>
3 #include <grass/cdhc.h>
4 #include "local_proto.h"
5 
6 double *Cdhc_kuipers_v(double *x, int n)
7 {
8  static double y[2];
9  double *d, sqrtn;
10 
11  sqrtn = sqrt((double)n);
12  d = Cdhc_dmax(x, n);
13 
14  y[1] = d[0] + d[1];
15  y[0] = y[1] * (sqrtn + 0.05 + 0.82 / sqrtn);
16 
17 #ifdef NOISY
18  fprintf(stdout, " TEST5 KV(N) =%10.4f\n", y[0]);
19 #endif /* NOISY */
20 
21  return y;
22 }
double * Cdhc_dmax(double *, int)
Definition: dmax.c:6
double * Cdhc_kuipers_v(double *x, int n)
Definition: kuiprsvn.c:6
#define x