1 
2 ///////////////////////////////////////////////////////////
3 //                                                       //
4 //                         SAGA                          //
5 //                                                       //
6 //      System for Automated Geoscientific Analyses      //
7 //                                                       //
8 //                     Tool Library                      //
9 //                  statistics_kriging                   //
10 //                                                       //
11 //-------------------------------------------------------//
12 //                                                       //
13 //                  Kriging_Universal.h                  //
14 //                                                       //
15 //                 Olaf Conrad (C) 2008                  //
16 //                                                       //
17 //-------------------------------------------------------//
18 //                                                       //
19 // This file is part of 'SAGA - System for Automated     //
20 // Geoscientific Analyses'. SAGA is free software; you   //
21 // can redistribute it and/or modify it under the terms  //
22 // of the GNU General Public License as published by the //
23 // Free Software Foundation, either version 2 of the     //
24 // License, or (at your option) any later version.       //
25 //                                                       //
26 // SAGA is distributed in the hope that it will be       //
27 // useful, but WITHOUT ANY WARRANTY; without even the    //
28 // implied warranty of MERCHANTABILITY or FITNESS FOR A  //
29 // PARTICULAR PURPOSE. See the GNU General Public        //
30 // License for more details.                             //
31 //                                                       //
32 // You should have received a copy of the GNU General    //
33 // Public License along with this program; if not, see   //
34 // <http://www.gnu.org/licenses/>.                       //
35 //                                                       //
36 //-------------------------------------------------------//
37 //                                                       //
38 //    e-mail:     oconrad@saga-gis.org                   //
39 //                                                       //
40 //    contact:    Olaf Conrad                            //
41 //                Institute of Geography                 //
42 //                University of Goettingen               //
43 //                Goldschmidtstr. 5                      //
44 //                37077 Goettingen                       //
45 //                Germany                                //
46 //                                                       //
47 ///////////////////////////////////////////////////////////
48 
49 //---------------------------------------------------------
50 #ifndef HEADER_INCLUDED__Kriging_Universal_H
51 #define HEADER_INCLUDED__Kriging_Universal_H
52 
53 
54 ///////////////////////////////////////////////////////////
55 //														 //
56 //														 //
57 //														 //
58 ///////////////////////////////////////////////////////////
59 
60 //---------------------------------------------------------
61 #include "kriging_base.h"
62 
63 
64 ///////////////////////////////////////////////////////////
65 //														 //
66 //														 //
67 //														 //
68 ///////////////////////////////////////////////////////////
69 
70 //---------------------------------------------------------
71 class CKriging_Universal : public CKriging_Base
72 {
73 public:
74 	CKriging_Universal(void);
75 
76 
77 protected:
78 
79 	virtual bool			Init_Points			(CSG_Shapes *pPoints, int Field, bool bLog);
80 
81 	virtual bool			Get_Weights			(const CSG_Matrix &Points, CSG_Matrix &W);
82 
83 	virtual bool			Get_Value			(double x, double y, double &v, double &e);
84 
85 
86 private:
87 
88 	bool					m_bCoords;
89 
90 	TSG_Grid_Resampling		m_Resampling;
91 
92 	CSG_Parameter_Grid_List	*m_pPredictors;
93 
94 };
95 
96 
97 ///////////////////////////////////////////////////////////
98 //														 //
99 //														 //
100 //														 //
101 ///////////////////////////////////////////////////////////
102 
103 //---------------------------------------------------------
104 #endif // #ifndef HEADER_INCLUDED__Kriging_Universal_H
105