Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

TDSPFilterBank Class Reference

#include <TDSPFilterBank.h>

Inheritance diagram for TDSPFilterBank:

TDSPRating

Public Member Functions

 TDSPFilterBank (UInt_t N=0, UInt_t L=0)
 Init with N filters of common length L.

 ~TDSPFilterBank ()
void SetFilter (UInt_t n, TDSPVector *f)
 Set the response for filter n from a vector f.

TDSPVectorGetFilter (UInt_t n, TDSPVector *f=NULL)
 Return the response of filter n as a vector.

void SetMatrix (TDSPMatrix *a)
 set the filter matrix

TDSPMatrixGetMatrix () const
void LoadMatrix (char *fname, char *key)
 Load the matrix from file "fname" under the key "key".

void SetSize (UInt_t N, UInt_t L)
 Set the number of filters and the common length.

void SetSubSampling (UInt_t n, UInt_t T)
 Set the subsampling for filter n.

void SetSubSamplings (UInt_t T)
 Set the subsampling for all filters.

void SetTimePad (UInt_t T)
void SetFilterOption (UInt_t opt)
 Set all options for all filters.

void SetFilterOption (UInt_t n, UInt_t opt)
 Set all options for that filter.

UInt_t GetFilterOption (UInt_t n)
 Get all options for that filter.

Bool_t IsActive (UInt_t n)
 Is this filter activated.

void Activate (UInt_t n)
 Activate this filter.

void Deactivate (UInt_t n)
 Deactivate this filter.

Bool_t IsCommonSubSampling ()
 Is the Subsampling for all filters the same ?

UInt_t GetSubSampling (UInt_t n)
 Get the subsampling for filter n.

UInt_t GetSubSamplings ()
 Get the subsamplings if their are equal for all filters !!

UInt_t GetMaxSubSampling () const
UInt_t GetMinSubSampling () const
UInt_t GetLength ()
 Return the common length of filter response.

UInt_t GetNum ()
 Return the number of filters in the bank.

void SetLength (UInt_t)
 Set the length of the filters.

void SetNum (UInt_t)
 Set the number of the filters.

void SetZero (Int_t z)
Int_t GetZero () const
TDSPVectorSynthesize (TDSPVector *input, TDSPVector *output=NULL)
 Perform the synthesis operation.

TDSPVectorAnalyze (TDSPVector *input, TDSPVector *output=NULL)
 Perform the analysis operation.

virtual void InitFromProtoType (Option_t *method, TDSPVector *input)
 Init the filters by a method and a prototyp.

virtual void LoadAndInitFromProtoType (Option_t *method, char *fname, char *key=NULL)
 Load "fname" and Init the filters by a method and a prototyp.

UInt_t GetFreqPad () const
void SetFreqPad (UInt_t f)
UInt_t GetNumActiveFilters () const
void Print ()
 Print out the settings.

Double_t GetBandWidthEfficiency ()
TDSPMatrixGetDualMatrix (Option_t *method="pseudoinverse")

Protected Attributes

UInt_t fOpt
 several options

TDSPMatrixfFilterBank
 The filters of the filterbank in matrix form.

TArrayI fSubSamplings
 The Subsampling factors (=timepads).

UInt_t fMinSubSampling
 Minimal Subsampling.

UInt_t fMaxSubSampling
 Maximal Subsampling.

TArrayI fFilterOptions
 Several Options per Filter.

TString fMethodStr
 a method string describing the method of filter allocation

UInt_t fFreqPad
 The discrete-time frequency pad.


Constructor & Destructor Documentation

TDSPFilterBank::TDSPFilterBank UInt_t  N = 0,
UInt_t  L = 0
 

Init with N filters of common length L.

TDSPFilterBank::~TDSPFilterBank  ) 
 


Member Function Documentation

void TDSPFilterBank::Activate UInt_t  n  ) 
 

Activate this filter.

TDSPVector* TDSPFilterBank::Analyze TDSPVector input,
TDSPVector output = NULL
 

Perform the analysis operation.

void TDSPFilterBank::Deactivate UInt_t  n  ) 
 

Deactivate this filter.

Double_t TDSPFilterBank::GetBandWidthEfficiency  ) 
 

TDSPMatrix* TDSPFilterBank::GetDualMatrix Option_t *  method = "pseudoinverse"  ) 
 

TDSPVector* TDSPFilterBank::GetFilter UInt_t  n,
TDSPVector f = NULL
 

Return the response of filter n as a vector.

UInt_t TDSPFilterBank::GetFilterOption UInt_t  n  ) 
 

Get all options for that filter.

UInt_t TDSPFilterBank::GetFreqPad  )  const [inline]
 

Definition at line 115 of file TDSPFilterBank.h.

References fFreqPad.

00115 { return fFreqPad;}; 

UInt_t TDSPFilterBank::GetLength  ) 
 

Return the common length of filter response.

TDSPMatrix* TDSPFilterBank::GetMatrix  )  const [inline]
 

Definition at line 77 of file TDSPFilterBank.h.

References fFilterBank.

00077 { return fFilterBank;}; 

UInt_t TDSPFilterBank::GetMaxSubSampling  )  const [inline]
 

Definition at line 94 of file TDSPFilterBank.h.

References fMaxSubSampling.

00094 { return fMaxSubSampling;}; 

UInt_t TDSPFilterBank::GetMinSubSampling  )  const [inline]
 

Definition at line 95 of file TDSPFilterBank.h.

References fMinSubSampling.

00095 { return fMinSubSampling;}; 

UInt_t TDSPFilterBank::GetNum  ) 
 

Return the number of filters in the bank.

UInt_t TDSPFilterBank::GetNumActiveFilters  )  const [inline]
 

Definition at line 117 of file TDSPFilterBank.h.

00117 { return fNumActive;}; 

UInt_t TDSPFilterBank::GetSubSampling UInt_t  n  ) 
 

Get the subsampling for filter n.

UInt_t TDSPFilterBank::GetSubSamplings  ) 
 

Get the subsamplings if their are equal for all filters !!

Int_t TDSPFilterBank::GetZero  )  const [inline]
 

Definition at line 102 of file TDSPFilterBank.h.

00102 { return fZero;}; 

virtual void TDSPFilterBank::InitFromProtoType Option_t *  method,
TDSPVector input
[virtual]
 

Init the filters by a method and a prototyp.

Bool_t TDSPFilterBank::IsActive UInt_t  n  ) 
 

Is this filter activated.

Bool_t TDSPFilterBank::IsCommonSubSampling  ) 
 

Is the Subsampling for all filters the same ?

virtual void TDSPFilterBank::LoadAndInitFromProtoType Option_t *  method,
char *  fname,
char *  key = NULL
[virtual]
 

Load "fname" and Init the filters by a method and a prototyp.

void TDSPFilterBank::LoadMatrix char *  fname,
char *  key
 

Load the matrix from file "fname" under the key "key".

void TDSPFilterBank::Print  ) 
 

Print out the settings.

void TDSPFilterBank::SetFilter UInt_t  n,
TDSPVector f
 

Set the response for filter n from a vector f.

void TDSPFilterBank::SetFilterOption UInt_t  n,
UInt_t  opt
 

Set all options for that filter.

void TDSPFilterBank::SetFilterOption UInt_t  opt  ) 
 

Set all options for all filters.

void TDSPFilterBank::SetFreqPad UInt_t  f  )  [inline]
 

Definition at line 116 of file TDSPFilterBank.h.

References fFreqPad.

00116 { fFreqPad=f;};

void TDSPFilterBank::SetLength UInt_t   ) 
 

Set the length of the filters.

void TDSPFilterBank::SetMatrix TDSPMatrix a  ) 
 

set the filter matrix

void TDSPFilterBank::SetNum UInt_t   ) 
 

Set the number of the filters.

void TDSPFilterBank::SetSize UInt_t  N,
UInt_t  L
 

Set the number of filters and the common length.

void TDSPFilterBank::SetSubSampling UInt_t  n,
UInt_t  T
 

Set the subsampling for filter n.

void TDSPFilterBank::SetSubSamplings UInt_t  T  ) 
 

Set the subsampling for all filters.

Referenced by SetTimePad().

void TDSPFilterBank::SetTimePad UInt_t  T  )  [inline]
 

Definition at line 83 of file TDSPFilterBank.h.

References SetSubSamplings().

00083 { SetSubSamplings(T);}; 

void TDSPFilterBank::SetZero Int_t  z  )  [inline]
 

Definition at line 101 of file TDSPFilterBank.h.

00101 { fZero=z;}; 

TDSPVector* TDSPFilterBank::Synthesize TDSPVector input,
TDSPVector output = NULL
 

Perform the synthesis operation.


Field Documentation

TDSPMatrix* TDSPFilterBank::fFilterBank [protected]
 

The filters of the filterbank in matrix form.

Definition at line 58 of file TDSPFilterBank.h.

Referenced by GetMatrix().

TArrayI TDSPFilterBank::fFilterOptions [protected]
 

Several Options per Filter.

Definition at line 62 of file TDSPFilterBank.h.

UInt_t TDSPFilterBank::fFreqPad [protected]
 

The discrete-time frequency pad.

Definition at line 67 of file TDSPFilterBank.h.

Referenced by GetFreqPad(), and SetFreqPad().

UInt_t TDSPFilterBank::fMaxSubSampling [protected]
 

Maximal Subsampling.

Definition at line 61 of file TDSPFilterBank.h.

Referenced by GetMaxSubSampling().

TString TDSPFilterBank::fMethodStr [protected]
 

a method string describing the method of filter allocation

Definition at line 63 of file TDSPFilterBank.h.

UInt_t TDSPFilterBank::fMinSubSampling [protected]
 

Minimal Subsampling.

Definition at line 60 of file TDSPFilterBank.h.

Referenced by GetMinSubSampling().

UInt_t TDSPFilterBank::fOpt [protected]
 

several options

Definition at line 57 of file TDSPFilterBank.h.

TArrayI TDSPFilterBank::fSubSamplings [protected]
 

The Subsampling factors (=timepads).

Definition at line 59 of file TDSPFilterBank.h.


The documentation for this class was generated from the following file:
Generated on Fri Apr 23 16:23:54 2004 by doxygen 1.3.2