UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BPFlt Class Reference

#include <bpflt.hpp>

Inheritance diagram for BPFlt:
BPFltPRD

Public Types

typedef std::pair< float, float > BElem
 
typedef std::vector< BElemBand
 

Public Member Functions

 BPFlt (const Band &band)
 
virtual ~BPFlt ()
 
bool operator() (std::vector< float > &ampls, float dt) const
 
float operator() (float f) const
 
const Bandband () const
 

Protected Member Functions

virtual bool filter (std::vector< float > &ampls, float dt) const
 
virtual float coeff (float f) const
 

Protected Attributes

Band m_band
 

Detailed Description

Band-pass filter.

Member Typedef Documentation

typedef std::vector<BElem> BPFlt::Band

Filter's band.

typedef std::pair<float, float> BPFlt::BElem

Fiter's (frequency, weight) band element.

Constructor & Destructor Documentation

BPFlt::BPFlt ( const Band band)

Constructs filter with provided band. Band will be sorted by frequency ascending. And equal values will be removed.

virtual BPFlt::~BPFlt ( )
virtual

Destructor.

Member Function Documentation

const Band& BPFlt::band ( ) const
inline

Access to band.

virtual float BPFlt::coeff ( float  f) const
protectedvirtual

Calculates filter's coefficient for provided frequency. Allways returns 0 if band is empty and returns corresponded weight if band has only one element.

virtual bool BPFlt::filter ( std::vector< float > &  ampls,
float  dt 
) const
protectedvirtual

Applies filter for provided signal with dt time step. Returns false on error.

Reimplemented in BPFltPRD.

bool BPFlt::operator() ( std::vector< float > &  ampls,
float  dt 
) const
inline

See filter method.

float BPFlt::operator() ( float  f) const
inline

See coeff method.

Member Data Documentation

Band BPFlt::m_band
protected

Filter band.


The documentation for this class was generated from the following file: