UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
trace_pred.hpp
1 /* trace_pred.hpp */
2 /* $Id: trace_pred.hpp 21566 2012-04-18 12:25:05Z sasha $ */
3 #ifndef __trace_pred_hpp
4 #define __trace_pred_hpp
5 
6 #include <vector>
7 
8 #include <s2proc/prd_service.hpp>
9 
10 
12 {
13 public:
14 
17 
18  TracePredictor(std::vector<float> *input_trace, OperatorParams* op_par);
19 
20  ~TracePredictor();
21 
23  void setInputData(std::vector<float> *input_trace, OperatorParams* op_par);
24 
27  bool setInputData(std::vector<float> *input_trace);
28 
31  bool setInputData(OperatorParams* op_par);
32 
34  bool deconvoluteTrace(std::vector<float> &res_trace);
35 
38  bool processTrace(std::vector<float> &res_trace, unsigned int left_add, unsigned int right_add);
39 
40  bool expandTrace(std::vector<float> &res_trace, unsigned int left_add, unsigned int right_add);
41 
42 protected:
43 
44  bool expandTraceOnRight(std::vector<float> &res_trace, unsigned int add);
45 
62  bool formPredWin(std::vector<float> *trace_win, std::vector<float> &res_trace, unsigned int add_num);
63 
66  bool getTraceWinOp(std::vector<float> *trace_win, OperatorParams op_par, float *&prd_oper);
67 
68 
70  bool processTraceWin(std::vector<float> *input_trace, float* op_spectrum, std::vector<float> &res_trace);
71 
72 
73  bool m_ready;
75  std::vector<float> m_input_trace;
79 };
80 
81 
82 
83 
84 #endif /* trace_pred.hpp */
Definition: prd_service.hpp:20
bool processTraceWin(std::vector< float > *input_trace, float *op_spectrum, std::vector< float > &res_trace)
bool formPredWin(std::vector< float > *trace_win, std::vector< float > &res_trace, unsigned int add_num)
bool deconvoluteTrace(std::vector< float > &res_trace)
std::vector< float > m_input_trace
Definition: trace_pred.hpp:75
Definition: trace_pred.hpp:11
bool processTrace(std::vector< float > &res_trace, unsigned int left_add, unsigned int right_add)
void setInputData(std::vector< float > *input_trace, OperatorParams *op_par)
bool getTraceWinOp(std::vector< float > *trace_win, OperatorParams op_par, float *&prd_oper)
bool m_ready
Definition: trace_pred.hpp:73
OperatorParams m_op_par
Definition: trace_pred.hpp:77