UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
energy_wave_detector.hpp
1 /* energy_wave_detector.hpp */
2 /* $Id: energy_wave_detector.hpp 21747 2012-08-14 10:10:43Z hoot $ */
3 #ifndef __energy_wave_detector_hpp
4 #define __energy_wave_detector_hpp
5 
6 #include "abstract_wave_detector.hpp"
7 
9 {
10 public:
11 
12  //EnergyWaveDetector(size_t app_tfb, size_t time_base, size_t sb_size, size_t sb_step = 1);
13 
14  EnergyWaveDetector(size_t time_base, size_t sb_size, size_t sb_step = 1);
15 
16  void setTfb(size_t app_tfb = 0.);
17 
18 
19 
20  virtual ~EnergyWaveDetector();
21 
22 protected:
23 
24  virtual bool calc(Trace &tr) const;
25  float CalcEnergy(const Trace &tr, size_t start_smpl, size_t end_smpl);
26 
28  size_t m_time_size;
29 
31  size_t m_sb_size;
32 
34  size_t m_sb_step;
35 
37  size_t m_app_tfb;
38 
39 
40 private:
41  float CalcEnergy(const Trace &tr, size_t start_smpl, size_t end_smpl) const;
42 
43  float calc_ratio(const float &E1, const float &E2) const;
44 
45 };
46 
47 #endif /* energy_wave_detector.hpp */
size_t m_sb_size
Definition: energy_wave_detector.hpp:31
Definition: energy_wave_detector.hpp:8
size_t m_time_size
Definition: energy_wave_detector.hpp:28
Definition: abstract_wave_detector.hpp:7
Definition: trace.hpp:14
size_t m_sb_step
Definition: energy_wave_detector.hpp:34
float CalcEnergy(const Trace &tr, size_t start_smpl, size_t end_smpl)