GRASS 8 Programmer's Manual
8.6.0dev(2026)-f6f2c534ea
Loading...
Searching...
No Matches
kse.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_kolmogorov_smirnov_exp
(
double
*x,
int
n)
7
{
8
static
double
y[2];
9
double
*d,
sqrtn
;
10
11
d =
Cdhc_dmax_exp
(
x
, n);
12
sqrtn
=
sqrt
((
double
)n);
13
14
y[1] = (d[0] > d[1]) ? d[0] : d[1];
15
y[0] = (y[1] - 0.2 / n) * (
sqrtn
+ 0.5 /
sqrtn
+ 0.26);
16
17
#ifdef NOISY
18
fprintf
(
stdout
,
" TEST17 KSD(E) =%10.4f\n"
, y[0]);
19
#endif
/* NOISY */
20
21
return
y;
22
}
cdhc.h
AMI_STREAM
Definition
ami_stream.h:153
Cdhc_dmax_exp
double * Cdhc_dmax_exp(double *, int)
Definition
dmaxe.c:6
Cdhc_kolmogorov_smirnov_exp
double * Cdhc_kolmogorov_smirnov_exp(double *x, int n)
Definition
kse.c:6
stdio.h
x
#define x
lib
cdhc
kse.c
Generated on Sun Apr 12 2026 06:59:14 for GRASS 8 Programmer's Manual by
1.9.8