GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-8c4f244c95
kuiprsve.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_exp
(
double
*
x
,
int
n)
7
{
8
static
double
y[2];
9
double
*d,
r
;
10
11
d =
Cdhc_dmax_exp
(
x
, n);
12
r
= sqrt((
double
)n);
13
14
y[1] = d[0] + d[1];
15
y[0] = (y[1] - 0.2 / n) * (
r
+ 0.35 /
r
+ 0.24);
16
17
#ifdef NOISY
18
fprintf(stdout,
" TEST18 KV(E) =%10.4f\n"
, y[0]);
19
#endif
/* NOISY */
20
21
return
y;
22
}
cdhc.h
Cdhc_dmax_exp
double * Cdhc_dmax_exp(double *, int)
Definition:
dmaxe.c:6
Cdhc_kuipers_v_exp
double * Cdhc_kuipers_v_exp(double *x, int n)
Definition:
kuiprsve.c:6
r
double r
Definition:
r_raster.c:39
x
#define x
lib
cdhc
kuiprsve.c
Generated on Sun Nov 10 2024 06:59:42 for GRASS GIS 8 Programmer's Manual by
1.9.1