GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
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
7
double
*
Cdhc_kuipers_v
(
double
*
x
,
int
n)
8
{
9
static
double
y[2];
10
double
*d, sqrtn;
11
12
sqrtn = sqrt((
double
)n);
13
d =
Cdhc_dmax
(x, n);
14
15
y[1] = d[0] + d[1];
16
y[0] = y[1] * (sqrtn + 0.05 + 0.82 / sqrtn);
17
18
#ifdef NOISY
19
fprintf(stdout,
" TEST5 KV(N) =%10.4f\n"
, y[0]);
20
#endif
/* NOISY */
21
22
return
y;
23
}
cdhc.h
Cdhc_dmax
double * Cdhc_dmax(double *, int)
Definition:
dmax.c:7
x
#define x
Cdhc_kuipers_v
double * Cdhc_kuipers_v(double *x, int n)
Definition:
kuiprsvn.c:7
lib
cdhc
kuiprsvn.c
Generated on Tue Feb 14 2023 05:56:00 for GRASS GIS 8 Programmer's Manual by
1.8.13