GWOLLUM
4.2.0
Tools for gravitational-wave analyses
|
Produce a filter defined by a set of zeros, poles and a gain factor. More...
#include <Sample.h>
Public Member Functions | |
void | SetGain (const double aGainRe, const double aGainIm) |
Set a filter gain. More... | |
void | SetPole (const unsigned int aPoleIndex, const double aPoleRe, const double aPoleIm) |
Set a filter pole. More... | |
void | SetZero (const unsigned int aZeroIndex, const double aZeroRe, const double aZeroIm) |
Set a filter zero. More... | |
void | WToZ (void) |
Move from the W- to Z-plane. More... | |
Constructors and destructors | |
ZPGFilter (const unsigned int aNumZeros, const unsigned int aNumPoles) | |
Constructor of the ZPGFilter class. More... | |
virtual | ~ZPGFilter (void) |
Destructor of the ZPGFilter class. More... | |
Private Attributes | |
double | gain [2] |
Complex gain. More... | |
unsigned int | npoles |
Number of poles. More... | |
unsigned int | nzeros |
Number of zeros. More... | |
double * | poles [2] |
Complex poles. More... | |
double * | zeros [2] |
Complex zeros. More... | |
Friends | |
class | IIRFilter |
Produce a filter defined by a set of zeros, poles and a gain factor.
This class is designed to create and use a filter defined by zeros and poles.
ZPGFilter::ZPGFilter | ( | const unsigned int | aNumZeros, |
const unsigned int | aNumPoles | ||
) |
Constructor of the ZPGFilter class.
[in] | aNumZeros | Number of zeros. |
[in] | aNumPoles | Number of poles. |
|
virtual |
Destructor of the ZPGFilter class.
|
inline |
Set a filter gain.
[in] | aGainRe | Gain real part. |
[in] | aGainIm | Gain imaginary part. |
|
inline |
Set a filter pole.
[in] | aPoleIndex | Pole index. |
[in] | aPoleRe | Pole real part. |
[in] | aPoleIm | Pole imaginary part. |
|
inline |
Set a filter zero.
[in] | aZeroIndex | Zero index. |
[in] | aZeroRe | Zero real part. |
[in] | aZeroIm | Zero imaginary part. |
void ZPGFilter::WToZ | ( | void | ) |
Move from the W- to Z-plane.
|
friend |
|
private |
Complex gain.
|
private |
Number of poles.
|
private |
Number of zeros.
|
private |
Complex poles.
|
private |
Complex zeros.