Commit 1a6f00c9 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

proceeding

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1814
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 55e4bd8f
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: filter.cc,v 1.5 2005-07-05 11:07:29 tforb Exp $
* $Id: filter.cc,v 1.6 2005-07-05 11:26:38 tforb Exp $
* \author Thomas Forbriger
* \date 05/07/2005
*
......@@ -19,12 +19,22 @@
#define TF_FILTER_CC_VERSION \
"TF_FILTER_CC V1.0 "
#define TF_FILTER_CC_CVSID \
"$Id: filter.cc,v 1.5 2005-07-05 11:07:29 tforb Exp $"
"$Id: filter.cc,v 1.6 2005-07-05 11:26:38 tforb Exp $"
#include <tsxx/filter.h>
#include <tsxx/filtre.h>
#include <tsxx/filavg.h>
namespace tf {
namespace ts {
}
namespace filter {
//! remove trend
Ttimeseries Trend::operator()(const Ttimeseries& s) const
{ lpb(s, s.header.dt, Mt0, Mo); return s; }
} // namespace filter
} // namespace ts
/* ----- END OF filter.cc ----- */
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: filter.h,v 1.7 2005-07-05 11:05:25 tforb Exp $
* $Id: filter.h,v 1.8 2005-07-05 11:26:38 tforb Exp $
* \author Thomas Forbriger
* \date 05/07/2005
*
......@@ -23,11 +23,29 @@
#define TF_FILTER_H_VERSION \
"TF_FILTER_H V1.0 "
#define TF_FILTER_H_CVSID \
"$Id: filter.h,v 1.7 2005-07-05 11:05:25 tforb Exp $"
"$Id: filter.h,v 1.8 2005-07-05 11:26:38 tforb Exp $"
namespace tf {
#include<tsxx/filterbase.h>
}
namespace ts {
namespace filter {
//! remove trend
class Trend: public ts::filter::BasicFilter {
public:
Ttimeseries operator()(const Ttimeseries& s) const;
}; // class Trend
//! remove average
class Average: public ts::filter::BasicFilter {
public:
Ttimeseries operator()(const Ttimeseries& s) const;
}; // class Average
} // namespace filter
} // namespace ts
#endif // TF_FILTER_H_VERSION (includeguard)
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: filterbase.h,v 1.2 2005-07-05 11:07:29 tforb Exp $
* $Id: filterbase.h,v 1.3 2005-07-05 11:26:39 tforb Exp $
* \author Thomas Forbriger
* \date 05/07/2005
*
......@@ -23,7 +23,7 @@
#define TF_FILTERBASE_H_VERSION \
"TF_FILTERBASE_H V1.0 "
#define TF_FILTERBASE_H_CVSID \
"$Id: filterbase.h,v 1.2 2005-07-05 11:07:29 tforb Exp $"
"$Id: filterbase.h,v 1.3 2005-07-05 11:26:39 tforb Exp $"
#include<list>
#include<string>
......@@ -52,10 +52,15 @@ namespace ts {
/*! base class for any filter
*
* Filters derived from that class will have the following properties:
*
* - They do neither need the time of first sample nor will they alter it
* - They will not change the number of samples
* - They will not change the sampling interval
* - They do neither need the time of first sample nor will they alter it
*
* The only other filter that changes the number of samples and the
* interval and that might fit into this interface is a decimation filter.
* I do not like to leave this specification for just one filter, sinde we
* have to define a second interface for window filters and time shifting
* filters anyway, which need the full SFF header.
*/
class BasicFilter {
public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment