class TSeries Time series API.
| | size_type Length type; |
| | stat_type Status type; |
| | math_type Math type; |
| | TSeries () Default constructor. |
| | TSeries (const TSeries& TS) Copy Constructor. |
| | TSeries (const Time& t0, const Interval& dt) Dataless constructor. |
| | TSeries (const Time& t0, const Interval& dt, size_type NData, const float dData[]=0) Float data constructor. |
| | TSeries (const Time& t0, const Interval& dt, size_type NData, const short dData[]) Short integer data constructor. |
| | TSeries (const Time& t0, const Interval& dt, size_type NData, const int dData[]) Integer data constructor. |
| | TSeries (const Time& t0, const Interval& dt, size_type NData, const double dData[]) Double float data constructor. |
| | TSeries (const Time& t0, const Interval& dt, size_type NData, const fComplex dData[]) Complex data constructor. |
| | TSeries (const Time& t0, const Interval& dt, size_type NData, const Chirp& func) Signal template function constructor. |
| | TSeries (const Time& t0, const Interval& dt, const DVector& data) Signal template function constructor. |
| | TSeries (const Time& t0, const Interval& dt, DVector* data) Signal template function constructor. |
| | TSeries (const FSeries& fs) FSeries constructor. |
| | ~TSeries () TSeries Destructor. |
| | copy (const TSeries& in) Copy TSeries data. |
| | Dump (std::ostream& out) const Formatted dump of the TSeries data. |
| | decimate (size_type dec) const Decimate a Time Series. |
| | eraseStart (Interval dT) Erase data from the start of a TSeries. |
| | extract (const Time& t0, const Interval& dT=Interval(0.0)) const Extract a subset of the data from a TSeries. |
| | extend (const Time& t0) Extend a TSeries. |
| | getBin (const Time& t) const Get bin index. |
| | getBinT (size_type inx) const Get bin time. |
| | getComplex (size_type index) const Get ith element as a complex number. |
| | getData (size_type len, short* data) const Copy data to a short int output array. |
| | getData (size_type len, int* data) const Copy data to an integer array |
| | getData (size_type len, float* data) const Copy data to a float array |
| | getData (size_type len, double* data) const Copy data to a double array |
| | getData (size_type len, fComplex* data) const Copy data to a complex array. |
| | getDouble (size_type index) const Get ith element as a double precision number. |
| | getEndTime (void) const Get the end Time of the series. |
| | getF0 (void) const Get heterodyne frequency. |
| | getFNyquist (void) const Get the Nyquist frequency. |
| | getInterval (void) const Get series duration. |
| | getName (void) const Get the series name. |
| | getNSample (void) const Get the number of samples |
| | getStartTime (void) const Get the start time. |
| | getTStep (void) const Get the sample time. |
| | getAverage (void) const Average value of data. |
| | getComplexAverage (void) const Average value of data. |
| | getMaximum (void) const Maximum data value. |
| | getMinimum (void) const Minumim data value. |
| | getNBetween (math_type low, math_type high) const Number of entries betwee two limits. |
| | getNGreater (math_type Limit) const Entries greater than limit. |
| | getNLess (math_type Limit) const Entries less than Limit. |
| | getSigmaW (void) const Window sigma. |
| | getStatus (void) const Data status. |
| | isComplex (void) const Test for data. |
| | empty (void) const Test for data. |
| | isGood (void) const Test data status. |
| | refDVect (void) const Get a reference to the data vector. |
| | refData (void) const Get a constant reference to the data. |
| | refData (void) Get a reference to the data. |
| | appName (const char* name) Append a string to the series name. |
| | combineStatus (stat_type stat) Set the data status. |
| | setData (const Time& t, const Interval& Step, const short* data, size_type N) Set the series data. |
| | setData (const Time& t, const Interval& Step, const int* data, size_type N) Set the series data. |
| | setData (const Time& t, const Interval& Step, const float* data, size_type N) Set the series data. |
| | setData (const Time& t, const Interval& Step, const double* data, size_type N) Set the series data. |
| | setData (const Time& t, const Interval& Step, const fComplex* data, size_type N) Set the series data. |
| | setF0 (double f0) Set the heterodyne frequency. |
| | setFNyquist (double fNy) Set the Nyquist frequency. |
| | setName (const char* name) Name a series. |
| | setSigmaW (math_type sw) Set the window sigma. |
| | setStatus (stat_type stat) Set the data status. |
| | Append (const Time& t, const Interval& Step, const short* data, size_type N) Append data to the time series. |
| | Append (const Time& TS, const Interval& Step, const int* data, size_type N) Append data to the time series. |
| | Append (const Time& TS, const Interval& Step, const float* data, size_type N) Append data to the time series. |
| | Append (const Time& TS, const Interval& Step, const double* data, size_type N) Append data to the time series. |
| | Append (const Time& TS, const Interval& Step, const fComplex* data, size_type N) Append data to the time series. |
| | Append (const TSeries& t, size_type decim8=1) Concatenate two TSeries. |
| | Convert (int type) Convert the data vector type. |
| | ReSize (size_type len) Expand the data vector. |
| | Clear (const Time& t0=Time(0), const Interval& dt=Interval(0.0)) Delete the series data. |
| | fShift (math_type f0, math_type phi0=0) const Up-convert (heterodyne) a time series. |
| | operator= (const TSeries& ts) Assignment operator. |
| | operator* (const TSeries& y) const Correlate two series. |
| | operator/ (const TSeries& y) const Divide series by another. |
| | operator+= (math_type bias) Bias a TSeries. |
| | operator-= (math_type bias) Bias a TSeries. |
| | operator*= (math_type scale) Scale a TSeries. |
| | operator/= (math_type scale) Scale a TSeries. |
| | operator+= (const TSeries& rhs) Add a TSeries. |
| | operator-= (const TSeries& rhs) Subtract a TSeries. |
| | refDVect (void) Get a reference to the data vector. |
| | Contig (const Time& t, const Interval& Step) Test for consistency with end of series |
| | overlap (const TSeries& ts, size_type& inx, size_type& inx1) const Overlap finds the ranges of two time series that overlap in time |
The TSeries class holds a time series of arbitrarily typed data.
typedef unsigned long stat_type
typedef double math_type
TSeries()
TSeries(const TSeries& TS)
TSeries(const Time& t0, const Interval& dt)
dt - Step interval.
TSeries(const Time& t0, const Interval& dt, size_type NData, const float dData[]=0)
dt - Time interval between two successive samples.
NData - Number of data words.
dData - float array containing series data.
TSeries(const Time& t0, const Interval& dt, size_type NData, const short dData[])
dt - Time interval between two successive samples.
NData - Number of data words.
dData - short integer array containing series data.
TSeries(const Time& t0, const Interval& dt, size_type NData, const int dData[])
dt - Time interval between two successive samples.
NData - Number of data words.
dData - float array containing series data.
TSeries(const Time& t0, const Interval& dt, size_type NData, const double dData[])
dt - Time interval between two successive samples.
NData - Number of data words.
dData - double array containing series data.
TSeries(const Time& t0, const Interval& dt, size_type NData, const fComplex dData[])
dt - Time interval between two successive samples.
NData - Number of data words.
dData - Complex array containing series data.
TSeries(const Time& t0, const Interval& dt, size_type NData, const Chirp& func)
dt - Time interval between two successive samples.
NData - Number of data words.
func - Template object based on a Chirp.
TSeries(const Time& t0, const Interval& dt, const DVector& data)
dt - Time interval between two successive samples.
data - Data vector.
TSeries(const Time& t0, const Interval& dt, DVector* data)
dt - Time interval between two successive samples.
data - Data vector.
explicit TSeries(const FSeries& fs)
virtual ~TSeries()
TSeries& copy(const TSeries& in)
std::ostream& Dump(std::ostream& out) const
TSeries decimate(size_type dec) const
void eraseStart(Interval dT)
TSeries extract(const Time& t0, const Interval& dT=Interval(0.0)) const
dT - Time duration of the desired subset.
void extend(const Time& t0)
size_type getBin(const Time& t) const
Time getBinT(size_type inx) const
fComplex getComplex(size_type index) const
size_type getData(size_type len, short* data) const
data - Short integer array into which the data will be copied.
size_type getData(size_type len, int* data) const
data - Array to receive series data.
size_type getData(size_type len, float* data) const
data - Array to receive series data.
size_type getData(size_type len, double* data) const
data - Array to receive series data.
size_type getData(size_type len, fComplex* data) const
data - Array to receive series data.
double getDouble(size_type index) const
Time getEndTime(void) const
double getF0(void) const
double getFNyquist(void) const
Interval getInterval(void) const
const char* getName(void) const
size_type getNSample(void) const
Time getStartTime(void) const
Interval getTStep(void) const
math_type getAverage(void) const
fComplex getComplexAverage(void) const
math_type getMaximum(void) const
math_type getMinimum(void) const
size_type getNBetween(math_type low, math_type high) const
high - Upper limit.
size_type getNGreater(math_type Limit) const
size_type getNLess(math_type Limit) const
math_type getSigmaW(void) const
stat_type getStatus(void) const
bool isComplex(void) const
bool empty(void) const
bool isGood(void) const
const DVector* refDVect(void) const
const void* refData(void) const
void* refData(void)
void appName(const char* name)
void combineStatus(stat_type stat)
int setData(const Time& t, const Interval& Step, const short* data, size_type N)
Step - New series sample interval.
data - Short integer array containing new sample
N - Number of data words in 'data'
int setData(const Time& t, const Interval& Step, const int* data, size_type N)
Step - New series sample interval.
data - Float array containing new sample
N - Number of data words in 'data'
int setData(const Time& t, const Interval& Step, const float* data, size_type N)
Step - New series sample interval.
data - Float array containing new sample
N - Number of data words in 'data'
int setData(const Time& t, const Interval& Step, const double* data, size_type N)
Step - New series sample interval.
data - Float array containing new sample
N - Number of data words in 'data'
int setData(const Time& t, const Interval& Step, const fComplex* data, size_type N)
Step - New series sample interval.
data - fComplex array containing new sample
N - Number of data words in 'data'
void setF0(double f0)
void setFNyquist(double fNy)
void setName(const char* name)
void setSigmaW(math_type sw)
void setStatus(stat_type stat)
int Append(const Time& t, const Interval& Step, const short* data, size_type N)
.
0 successful
-1 start time isn't equal to the series end time
-2 sample intervals aren't equal
Step - sample interval of data to be appended to the series.
data - Short integer array containing the data to be appended.
N - Number of data words to be appended to the series.
int Append(const Time& TS, const Interval& Step, const int* data, size_type N)
0 successful
-1 start time isn't equal to the current end time
-2 sample intervals aren't equal.
Step - sample interval of data to be appended to the series.
data - Float array containing the data to be appended.
N - Number of data words to be appended to the series.
int Append(const Time& TS, const Interval& Step, const float* data, size_type N)
0 successful
-1 start time isn't equal to the current end time
-2 sample intervals aren't equal.
Step - sample interval of data to be appended to the series.
data - Float array containing the data to be appended.
N - Number of data words to be appended to the series.
int Append(const Time& TS, const Interval& Step, const double* data, size_type N)
0 successful
-1 start time isn't equal to the current end time
-2 sample intervals aren't equal.
Step - sample interval of data to be appended to the series.
data - Float array containing the data to be appended.
N - Number of data words to be appended to the series.
int Append(const Time& TS, const Interval& Step, const fComplex* data, size_type N)
0 successful
-1 start time isn't equal to the current end time
-2 sample intervals aren't equal.
Step - sample interval of data to be appended to the series.
data - Complex array containing the data to be appended.
N - Number of data words to be appended to the series.
int Append(const TSeries& t, size_type decim8=1)
0 successful
-1 start time of TS not equal to the end time
-2 decimated sample rate isn't equal to the current rate.
decim8 - decimation factor.
void Convert(int type)
void ReSize(size_type len)
void Clear(const Time& t0=Time(0), const Interval& dt=Interval(0.0))
dt - New sample interval. By default the interval is zeroed.
TSeries fShift(math_type f0, math_type phi0=0) const
phi0 - Phase shift of the first sample (defaults to 0).
TSeries& operator=(const TSeries& ts)
math_type operator*(const TSeries& y) const
).
TSeries operator/(const TSeries& y) const
TSeries& operator+=(math_type bias)
TSeries& operator-=(math_type bias)
TSeries& operator*=(math_type scale)
TSeries& operator/=(math_type scale)