ApplyFilter Class Reference
[Signal processing methods]

Apply an adaptive filter to a time-series. More...

#include <ApplyFilter.h>

List of all members.

Public Member Functions

void ShowProgress (const bool what)
 Do we want visual feedback of the progess on the screen, if yes draw a simple progress indicator in text mode.
gplib::rmat GetWeightHistory ()
 Return a matrix with the values of the weights at iterations specified by weightsaveintervall.
void SetWeightSaveIntervall (const int intervall)
 Set the distance between iterations at which the weights are saved.
const std::vector
< boost::shared_ptr
< TimeSeriesComponent > > & 
GetOutChannels ()
 Return the vector of output channels.
const std::vector< std::vector
< double > > & 
GetEpsValues ()
 Return the vector of channel approximation errors.
void SetShift (const int theshift)
 Set the shift between the input time series and the reference time series.
void AddInputChannel (TimeSeriesComponent &Channel)
 Add an input channel to the filter.
void AddReferenceChannel (TimeSeriesComponent &Channel)
 Add a reference channel to the filter, some AdaptiveFilter objects require only one reference.
void FilterData ()
 Filter the input channels with the current settings.
 ApplyFilter (AdaptiveFilter &TheFilter, bool keephistory=false)
 The constructor takes the AdaptiveFilter object that determines how the filtering is done, if keephistory is true we store the weights.
virtual ~ApplyFilter ()


Detailed Description

Apply an adaptive filter to a time-series.

Definition at line 15 of file ApplyFilter.h.


Constructor & Destructor Documentation

ApplyFilter::ApplyFilter ( AdaptiveFilter TheFilter,
bool  keephistory = false 
)

The constructor takes the AdaptiveFilter object that determines how the filtering is done, if keephistory is true we store the weights.

Definition at line 4 of file ApplyFilter.cpp.

ApplyFilter::~ApplyFilter (  )  [virtual]

Definition at line 13 of file ApplyFilter.cpp.


Member Function Documentation

void ApplyFilter::AddInputChannel ( TimeSeriesComponent Channel  ) 

Add an input channel to the filter.

Definition at line 35 of file ApplyFilter.cpp.

References TimeSeriesComponent::GetData().

Referenced by main().

void ApplyFilter::AddReferenceChannel ( TimeSeriesComponent Channel  ) 

Add a reference channel to the filter, some AdaptiveFilter objects require only one reference.

Definition at line 42 of file ApplyFilter.cpp.

References TimeSeriesComponent::GetData(), and AdaptiveFilter::GetOutputLength().

Referenced by main().

void ApplyFilter::FilterData (  ) 

const std::vector< std::vector<double> >& ApplyFilter::GetEpsValues (  )  [inline]

Return the vector of channel approximation errors.

Definition at line 38 of file ApplyFilter.h.

Referenced by main().

const std::vector<boost::shared_ptr<TimeSeriesComponent> >& ApplyFilter::GetOutChannels (  )  [inline]

Return the vector of output channels.

Definition at line 36 of file ApplyFilter.h.

Referenced by main().

gplib::rmat ApplyFilter::GetWeightHistory (  ) 

Return a matrix with the values of the weights at iterations specified by weightsaveintervall.

Return a matrix with the values of the weights at iterations specified by weightsaveintervall. Internally we use a std::vector of ublas::vector and we construct the matrix in this routine. Therefore we return a copy and the access is computationally reasonably expensive. Mostly needed for final display of weights.

Definition at line 22 of file ApplyFilter.cpp.

Referenced by main().

void ApplyFilter::SetShift ( const int  theshift  )  [inline]

Set the shift between the input time series and the reference time series.

Definition at line 40 of file ApplyFilter.h.

Referenced by main().

void ApplyFilter::SetWeightSaveIntervall ( const int  intervall  )  [inline]

Set the distance between iterations at which the weights are saved.

Definition at line 34 of file ApplyFilter.h.

Referenced by main().

void ApplyFilter::ShowProgress ( const bool  what  )  [inline]

Do we want visual feedback of the progess on the screen, if yes draw a simple progress indicator in text mode.

Definition at line 30 of file ApplyFilter.h.

Referenced by main().


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

Generated on Tue Aug 4 16:04:17 2009 for GPLIB++ by  doxygen 1.5.8