Public Member Functions | Static Public Member Functions | Protected Attributes

Filterbank Class Reference

Used to divide the frequency domain into suitable intervals. More...

#include <spectrogram.hpp>

Inheritance diagram for Filterbank:
LinearFilterbank LogFilterbank

List of all members.

Public Member Functions

 Filterbank (double scale)
virtual intpair get_band (int i) const =0
 Returns start-finish indexes for a given filterband.
virtual int get_center (int i) const =0
 Returns the index of the filterband's center.
virtual int num_bands_est (double maxfreq) const =0
 Estimated total number of intervals.
virtual ~Filterbank ()

Static Public Member Functions

static std::auto_ptr< Filterbankget_filterbank (AxisScale type, double scale, double base, double hzbandwidth, double overlap)

Protected Attributes

const double scale_
 The proportion of frequency versus vector indices.

Detailed Description

Used to divide the frequency domain into suitable intervals.

Each interval represents a horizontal band in a spectrogram.

Definition at line 170 of file spectrogram.hpp.


Constructor & Destructor Documentation

Filterbank::Filterbank ( double  scale  ) 

Definition at line 596 of file spectrogram.cpp.

Filterbank::~Filterbank (  )  [virtual]

Definition at line 601 of file spectrogram.cpp.


Member Function Documentation

virtual intpair Filterbank::get_band ( int  i  )  const [pure virtual]

Returns start-finish indexes for a given filterband.

Implemented in LinearFilterbank, and LogFilterbank.

virtual int Filterbank::get_center ( int  i  )  const [pure virtual]

Returns the index of the filterband's center.

Implemented in LinearFilterbank, and LogFilterbank.

std::auto_ptr< Filterbank > Filterbank::get_filterbank ( AxisScale  type,
double  scale,
double  base,
double  hzbandwidth,
double  overlap 
) [static]

Definition at line 671 of file spectrogram.cpp.

virtual int Filterbank::num_bands_est ( double  maxfreq  )  const [pure virtual]

Estimated total number of intervals.

Implemented in LinearFilterbank, and LogFilterbank.


Member Data Documentation

const double Filterbank::scale_ [protected]

The proportion of frequency versus vector indices.

Definition at line 186 of file spectrogram.hpp.


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