class LPEFilter : public FIRFilter Linear Predictive Error Filter implementation.
| | LPEFilter (int filterLength = 0, int trainPeriod = 0, int trainLength = 0) Default constructor. |
| | LPEFilter (const LPEFilter& lpef) Copy constructor. |
| | ~LPEFilter (void) Destructor. |
| | operator= (const LPEFilter& lpef) Assignment operator. |
| | apply (const TSeries& in, TSeries& out) Filter TSeries |
| | train (const TSeries& data) Determine filter coefficients |
| | setTrainPeriod (int period) Set retraining period |
| | setTrainLength (int length) Set training length |
| | setHistory (const TSeries& in) Set History from TSeries |
| | getTrainPeriod (void) const Get retraining period |
| | getTrainLength (void) const Get training length |
| | getTrainTime (void) const Get time of most recent training |
| | getTransientTime (void) const Get the filter length in seconds. |
Linear predictive error filters are FIR filters whose coefficients are optimized in a least-squares sense to predict and remove the stationary components of a signal. It is a useful technique for removing line frequencies or a constant background from a signal and provides a simple method to rapidly identify transient events.The LPEFilter class implements a linear predictive error filter based on the FIRFilter class. In addition to the methods of FIRFilter, LPEFilter provides the following functionality.
A method is provided to determine the optimal filter coefficients based on training data, while ensuring that the filter history is retained.
Initial training is automatically performed when the filter is applied to data for the first time. Subsequent periodic retraining is automatically performed at predefined intervals. In addition, the user can call the training functions directly.
Like FIRFilter, LPEFilter operates on successive blocks of data. To ensure that retraining does not occur across succesive data blocks, the user specified retraining period should be an integer multiple of the block duration.
All data are promoted to type double prior to filtering.
LPEFilter(const LPEFilter& lpef)
virtual ~LPEFilter(void)
LPEFilter& operator=(const LPEFilter& lpef)
int apply(const TSeries& in, TSeries& out)
TSeries - output
int train(const TSeries& data)
void setTrainPeriod(int period)
void setTrainLength(int length)
void setHistory(const TSeries& in)
int getTrainPeriod(void) const
int getTrainLength(void) const
Time getTrainTime(void) const
Interval getTransientTime(void) const
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++