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

headers appear to be clean

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: 1808
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent a9dccff9
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: filter.h,v 1.4 2005-07-04 15:58:37 tforb Exp $
* $Id: filter.h,v 1.5 2005-07-05 09:35:49 tforb Exp $
* \author Thomas Forbriger
* \date 30/06/2005
*
......@@ -23,7 +23,7 @@
#define TF_FILTER_H_VERSION \
"TF_FILTER_H V1.0 "
#define TF_FILTER_H_CVSID \
"$Id: filter.h,v 1.4 2005-07-04 15:58:37 tforb Exp $"
"$Id: filter.h,v 1.5 2005-07-05 09:35:49 tforb Exp $"
#include<list>
#include<tsxx/tsxx.h>
......@@ -60,6 +60,7 @@ namespace ts {
//! type of sample values
typedef double Tvalue;
//! type of series container
typedef ts::filter::Ttimeseries Ttimeseries;
typedef Ttimeseries::Tseries Tseries;
typedef Ttimeseries::Theader Theader;
virtual ~BasicFilter();
......@@ -69,7 +70,7 @@ namespace ts {
template <class H>
Ttimeseries operator()(const ts::TimeSeries<Tseries, H>& s) const
{ return this->operator()(Ttimeseries(s, Theader(s.header.dt))); }
private:
protected:
//! Do not allow to use the baseclass alone
BasicFilter();
}; // class BasicFilter
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: seifeclass.cc,v 1.1 2005-07-04 16:19:24 tforb Exp $
* $Id: seifeclass.cc,v 1.2 2005-07-05 09:35:49 tforb Exp $
* \author Thomas Forbriger
* \date 04/07/2005
*
......@@ -19,9 +19,10 @@
#define TF_SEIFECLASS_CC_VERSION \
"TF_SEIFECLASS_CC V1.0 "
#define TF_SEIFECLASS_CC_CVSID \
"$Id: seifeclass.cc,v 1.1 2005-07-04 16:19:24 tforb Exp $"
"$Id: seifeclass.cc,v 1.2 2005-07-05 09:35:49 tforb Exp $"
#include <tsxx/seifeclass.h>
#include<tsxx/seifexx.h>
#include<tsxx/seifeclass.h>
namespace ts {
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: seifeclass.h,v 1.1 2005-07-04 16:19:24 tforb Exp $
* $Id: seifeclass.h,v 1.2 2005-07-05 09:35:50 tforb Exp $
* \author Thomas Forbriger
* \date 04/07/2005
*
......@@ -23,9 +23,8 @@
#define TF_SEIFECLASS_H_VERSION \
"TF_SEIFECLASS_H V1.0 "
#define TF_SEIFECLASS_H_CVSID \
"$Id: seifeclass.h,v 1.1 2005-07-04 16:19:24 tforb Exp $"
"$Id: seifeclass.h,v 1.2 2005-07-05 09:35:50 tforb Exp $"
#include<tsxx/seifexx.h>
#include<tsxx/filter.h>
namespace ts {
......@@ -33,103 +32,103 @@ namespace ts {
namespace seife {
/*! Butterworth lowpass (period t0, order o) */
class LPB: public BasicFilter {
class LPB: public ts::filter::BasicFilter {
public:
LPB(const Tseries& s, double dt, double t0, int o):
Mt0(t0), Mo(o) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0;
int Mo;
}; // class LPB
/*! Butterworth highpass (period t0, order o) */
class HPB: public BasicFilter {
class HPB: public ts::filter::BasicFilter {
public:
HPB(const Tseries& s, double dt, double t0, int o):
Mt0(t0), Mo(o) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0;
int Mo;
}; // class HPB
/*! 2nd order lowpass (period t0, damping h) */
class LP2: public BasicFilter {
class LP2: public ts::filter::BasicFilter {
public:
LP2(const Tseries& s, double dt, double t0, double h):
Mt0(t0), Mh(h) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0, Mh;
}; // class LP2
/*! 2nd order highpass (period t0, damping h) */
class HP2: public BasicFilter {
class HP2: public ts::filter::BasicFilter {
public:
HP2(const Tseries& s, double dt, double t0, double h):
Mt0(t0), Mh(h) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0, Mh;
}; // class HP2
/*! 2nd order bandpass (period t0, damping h) */
class BP2: public BasicFilter {
class BP2: public ts::filter::BasicFilter {
public:
BP2(const Tseries& s, double dt, double t0, double h):
Mt0(t0), Mh(h) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0, Mh;
}; // class BP2
/*! 1st order lowpass (period t0) */
class LP1: public BasicFilter {
class LP1: public ts::filter::BasicFilter {
public:
LP1(const Tseries& s, double dt, double t0):
Mt0(t0) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0;
}; // class LP1
/*! 1st order highpass (period t0) */
class HP1: public BasicFilter {
class HP1: public ts::filter::BasicFilter {
public:
HP1(const Tseries& s, double dt, double t0):
Mt0(t0) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0;
}; // class HP1
/*! integration (time constant t0) */
class INT: public BasicFilter {
class INT: public ts::filter::BasicFilter {
public:
INT(const Tseries& s, double dt, double t0):
Mt0(t0) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0;
}; // class INT
/*! 1st order highpass equalizer (former period t0s, new period t0) */
class HE1: public BasicFilter {
class HE1: public ts::filter::BasicFilter {
public:
HE1(const Tseries& s, double dt, double t0s, double t0):
Mt0s(t0s), Mt0(t0) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0s, Mt0;
}; // class HE1
/*! 1st order lowpass equalizer (former period t0s, new period t0) */
class LE1: public BasicFilter {
class LE1: public ts::filter::BasicFilter {
public:
LE1(const Tseries& s, double dt, double t0s, double t0):
Mt0s(t0s), Mt0(t0) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0s, Mt0;
}; // class LE1
......@@ -137,12 +136,12 @@ namespace ts {
/*! 2nd order highpass equalizer (former: period t0s and damping hs,
* new: period t0 and damping h)
*/
class HE2: public BasicFilter {
class HE2: public ts::filter::BasicFilter {
public:
HE2(const Tseries& s, double dt,
double t0s, double hs, double t0, double h):
Mt0s(t0s), Mhs(hs), Mt0(t0), Mh(h) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0s, Mhs;
double Mt0, Mh;
......@@ -151,41 +150,41 @@ namespace ts {
/*! 2nd order lowpass equalizer (former: period t0s and damping hs,
* new: period t0 and damping h)
*/
class LE2: public BasicFilter {
class LE2: public ts::filter::BasicFilter {
public:
LE2(const Tseries& s, double dt,
double t0s, double hs, double t0, double h):
Mt0s(t0s), Mhs(hs), Mt0(t0), Mh(h) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0s, Mhs;
double Mt0, Mh;
}; // class LE2
/*! detide with synthetic tides interpolated over ni samples */
class TID: public BasicFilter {
class TID: public ts::filter::BasicFilter {
public:
TID(const Tseries& s, double dt, int ni):
Mni(ni) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
int Mni;
}; // class TID
/*! derivative (time constant t0) */
class DIF: public BasicFilter {
class DIF: public ts::filter::BasicFilter {
public:
DIF(const Tseries& s, double dt, double t0):
Mt0(t0) { }
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
private:
double Mt0;
}; // class DIF
/*! set baseline to first value */
class FIRST: public BasicFilter {
class FIRST: public ts::filter::BasicFilter {
public:
Ttimeseries operator()(const Ttimeseries; s) const;
Ttimeseries operator()(const Ttimeseries& s) const;
}; // class FIRST
} // namespace seife
......
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