6 #include <boost/shared_ptr.hpp>
22 int weightsaveintervall;
23 std::vector<gplib::rvec> WeightHistory;
24 std::vector<TimeSeriesComponent*> InputChannels;
25 std::vector<TimeSeriesComponent*> RefChannels;
26 std::vector<boost::shared_ptr<TimeSeriesComponent> > OutChannels;
27 std::vector<std::vector<double> > EpsValues;
39 weightsaveintervall = intervall;
const std::vector< std::vector< double > > & GetEpsValues()
Return the vector of channel approximation errors.
void AddReferenceChannel(TimeSeriesComponent &Channel)
Add a reference channel to the filter, some AdaptiveFilter objects require only one reference...
Apply an adaptive filter to a time-series.
gplib::rmat GetWeightHistory()
Return a matrix with the values of the weights at iterations specified by weightsaveintervall.
void ShowProgress(const bool what)
Do we want visual feedback of the progess on the screen, if yes draw a simple progress indicator in t...
void AddInputChannel(TimeSeriesComponent &Channel)
Add an input channel to the filter.
ApplyFilter(AdaptiveFilter &TheFilter, bool keephistory=false)
The constructor takes the AdaptiveFilter object that determines how the filtering is done...
void SetWeightSaveIntervall(const int intervall)
Set the distance between iterations at which the weights are saved.
A generic base class for all types of adaptive filters.
TimeSeriesComponent is the base storage class for all types of time series data.
void FilterData()
Filter the input channels with the current settings.
void SetShift(const int theshift)
Set the shift between the input time series and the reference time series.
const std::vector< boost::shared_ptr< TimeSeriesComponent > > & GetOutChannels()
Return the vector of output channels.