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