class FIRFilter : public Pipe Digital FIR filter implementation API.
The Filter class object implements a digital FIR filter that can be used to filter time series (TSeries) data. Filter class instances carry the signal history as well as the filter coefficients to prevent the introduction of edge effect when filtering a long series in serveral pieces. Each signal (channel) to be filtered must use a separate Filter instance.
FIRFilter(int length, float Sample)
Sample - Nominal sampling rate.
FIRFilter(const FIRFilter& model)
~FIRFilter()
TSeries operator)(const TSeries& in)
void dataCheck(const TSeries& ts) const
Time getCurrentTime(void) const
int getLength(void) const throw()
double getRate(void) const throw()
Time getStartTime(void) const
bool getStat(void) const throw()
bool inUse(void) const
void dump(ostream& ostr) const throw()
TSeries apply(const TSeries& in)
TSeries& apply(const TSeries& in, TSeries& out) throw(invalid_argument)
out - Time series into which the filter response will be stored.
void apply(int N, const float* in, float* out)
in - Float array containing the input series.
out - Float array to contain the filter response. the end of
out may overlap the start of in.
void apply(int N, const fComplex* in, fComplex* out)
in - Float array containing the input series.
out - Float array to contain the filter response. the end of
out may overlap the start of in.
void reset(void)
Coefs - A list of filter coefficients (filter impulse response).
FIRFilter& operator=(const FIRFilter& model) throw()
void setCoefs(int N, const double* Coefs) throw()
Coefs - A list of filter coefficients (filter impulse response).
void setHistory(int N, const float* Hist=0, Time t=Time(0)) throw()
Hist - Filter history vector.
t - Time of the last sample in the history list.
void setHistory(int N, const fComplex* Hist, Time t=Time(0)) throw()
Hist - Filter history vector.
t - Time of the last sample in the history list.
void setLength(int N) throw()
void setRate(double F) throw()
FSeries Xfer(float Fmin=0.0, float Fmax=0.0, float dF=1.0) const throw()
Fmax - Maximum frequency at which to sample the transfer function.
dF - Frequency step.
alphabetic index hierarchy of classes
generated by doc++