1 /* ransurf.h                                                            */
2 #ifndef __RANSURF_H__
3 #define __RANSURF_H__
4 
5 #include <stdio.h>
6 #include <math.h>
7 #include <grass/raster.h>
8 
9 #define ODD(a)	((a) & 1)
10 
11 #define MAX_INTERVAL		10
12 #define MIN_INTERVAL		-10
13 /* DELTA_T is the inverse of the number of subdivisions within the      */
14 /*      Norm[] distribution for each standard deviation.                */
15 /* DELTA_T == 1 / 1000                                                  */
16 #define DELTA_T  		0.001
17 /* S_O_D == (2 * MAX_INTERVAL) / DELTA_T                                */
18 #define SIZE_OF_DISTRIBUTION 	20000
19 #define PI       		M_PI
20 
21 #define BIGF struct _big_f_filter_
22 BIGF {
23     int RowPlus, ColPlus, NumR, NumC, *LowBF, *HihBF;
24     double **F;
25 };
26 
27 #define FILTER struct _filter_strteres_
28 FILTER {
29     double Mult, MaxDist, MaxSq, Exp;
30 };
31 
32 #define CATINFO struct _cat_info_strtere_
33 CATINFO {
34     int NumCat, *NumValue;
35     double *Average, *Max, *Min;
36 };
37 
38 extern BIGF BigF;
39 extern double **RSurface, NS, EW, FilterSD, AllMaxDist, *Norm;
40 extern int MapCount, FDM, Rs, Cs, Theory;
41 extern CELL *CellBuffer;
42 extern FILTER *AllFilters, Filter;
43 extern CATINFO CatInfo;
44 extern int *Seeds, Seed, NumSeeds, Low, High, NumMaps, NumFilters, OutFD;
45 extern char Buf[240], **OutNames, *TheoryName, *Mapset;
46 extern struct Flag *Uniform;
47 
48     /* please, remove before GRASS 7 released */
49 extern struct Flag *Verbose;
50 extern struct Option *Distance, *Exponent, *Weight;
51 extern struct Option *Output;
52 extern struct Option *range_high_stuff;
53 extern struct Option *SeedStuff;
54 #endif
55