class FixedLenTS : public TSeries Fixed length Time series
| | FixedLenTS (void) Default constructor. |
| | FixedLenTS (Interval max) Data constructor. |
| | FixedLenTS (const FixedLenTS& x) Copy constructor. |
| | ~FixedLenTS () Destructor. |
| | fixedAppend (const Time& t0, Interval dT, float* x, int n=1) Append float data. |
| | fixedAppend (const TSeries& ts) Append a TSeries. |
| | padUntil (const Time& t0, Interval dT) Append zeroes until the specified time. |
| | setMaxLen (Interval dt) specify the maximum length. |
| | getMaxLen (void) const Get the Maximum length. |
The fixed length time series is defined in#include "FixedLenTS.hh"You set the maximum time either in the constructor, e.g.FixedLenTS mHistory(7200.0);Or explicitlyFixedLenTS mHistory; mHistory.setMaxLen(t);You then append data like....//---------------------------------- Keep the history Time t0 = fs.getStartTime(); Interval dT = fs.getEndTime()-t0; mTimeTot += dT; float bandP = mBand; mHistory.fixedAppend(t0, dT, &bandP);When it reaches the maximum it starts to delete data from the start, rather than increasing the length. The FixedLenTS is based on a TSeries so you can reference it as you would a TSeries.
explicit FixedLenTS(Interval max)
FixedLenTS(const FixedLenTS& x)
inline virtual ~FixedLenTS()
void fixedAppend(const Time& t0, Interval dT, float* x, int n=1)
dT - Time step between data.
x - Pointer to one or more data.
n - Number of data to be appended to the time series.
void fixedAppend(const TSeries& ts)
void padUntil(const Time& t0, Interval dT)
dT - Time step between data.
void setMaxLen(Interval dt)
Interval getMaxLen(void) const
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++