UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
bpflt.hpp
1 /* bpflt.hpp */
2 /* $Id: bpflt.hpp 22629 2014-07-23 11:09:28Z urij $ */
3 #ifndef __bpflt_hpp
4 #define __bpflt_hpp
5 
6 #include <vector>
7 
9 class BPFlt
10 {
11 public:
12 
14  typedef std::pair<float, float> BElem;
15 
17  typedef std::vector<BElem> Band;
18 
19 
23  BPFlt(const Band &band);
24 
26  virtual ~BPFlt();
27 
28 
30  bool operator()(std::vector<float> &ampls, float dt) const
31  {return filter(ampls, dt);}
32 
34  float operator()(float f) const
35  {return coeff(f);}
36 
37 
39  const Band& band() const {return m_band;}
40 
41 protected:
42 
45 
47  virtual bool filter(std::vector<float> &ampls, float dt) const;
48 
52  virtual float coeff(float f) const;
53 };
54 
55 #endif /* bpflt.hpp */
float operator()(float f) const
Definition: bpflt.hpp:34
Definition: bpflt.hpp:9
const Band & band() const
Definition: bpflt.hpp:39
std::pair< float, float > BElem
Definition: bpflt.hpp:14
Band m_band
Definition: bpflt.hpp:44
bool operator()(std::vector< float > &ampls, float dt) const
Definition: bpflt.hpp:30
std::vector< BElem > Band
Definition: bpflt.hpp:17
BPFlt(const Band &band)
virtual float coeff(float f) const
virtual bool filter(std::vector< float > &ampls, float dt) const
virtual ~BPFlt()