UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
calculator.hpp
1 /* calculator.hpp */
2 /* $Id$ */
3 #ifndef __calculator_hpp
4 #define __calculator_hpp
5 
6 #include <map>
7 
8 #ifdef GE_BUILD
9 #include <trace.hpp>
10 #include <polycor.hpp>
11 #else
12 #include <s2proc/trace.hpp>
13 #include <s2proc/polycor.hpp>
14 #endif
15 
17 typedef std::vector< std::vector<double> > Coeff_Matrix;
18 
20 {
21 public:
22 
24 
25  ~Calculator();
26 
27  void SetRows(std::map<int, PSC::ROW> rows_map);
28 
29  bool operator()(PSC::Statics &statics) const;
30 
31 protected:
32 
33  bool gauss_Prepare(Coeff_Matrix &coef_mat, std::vector<double> &result) const;
34 
35  bool Remove_Trend(PSC::Statics &statics) const;
36 
37  std::map<int, PSC::ROW > m_rows_map;
38 
39  PSC::PSC_Params m_params;
40 };
41 
42 #endif /* calculator.hpp */
Definition: calculator.hpp:19
Definition: polycor.hpp:19