UNIVERS
15.3
UNIVERS base processing software API
|
#include <zqb_abstr_trace.hpp>
Public Member Functions | |
ZqbAbstrTrace (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) | |
ZqbAbstrTrace (const ZqbAbstrTrace &atr) | |
virtual | ~ZqbAbstrTrace () |
ZqbAbstrTrace & | operator= (const ZqbAbstrTrace &atr) |
virtual void | assign (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) |
virtual void | setAllActual () |
virtual int | time2sample (float t) const |
virtual float | sample2time (int i) const |
virtual float | toTime (float fSampleIndex) const |
virtual float | fromTime (float fTime) const |
virtual bool | operator== (const ZqbAbstrTrace &atr) const |
bool | operator!= (const ZqbAbstrTrace &atr) const |
virtual float | sample (const float *trace, float t, int order=1) const |
void | getTimes (double t[2]) const |
ZqbAbstrTrace (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) | |
ZqbAbstrTrace (const ZqbAbstrTrace &atr) | |
virtual | ~ZqbAbstrTrace () |
ZqbAbstrTrace & | operator= (const ZqbAbstrTrace &atr) |
virtual void | assign (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) |
virtual void | setAllActual () |
virtual int | time2sample (float t) const |
virtual float | sample2time (int i) const |
virtual float | toTime (float fSampleIndex) const |
virtual float | fromTime (float fTime) const |
virtual bool | operator== (const ZqbAbstrTrace &atr) const |
bool | operator!= (const ZqbAbstrTrace &atr) const |
virtual float | sample (const float *trace, float t, int order=1) const |
void | getTimes (double t[2]) const |
Public Attributes | |
int | m_nSamples |
int | m_iActual [2] |
float | m_fDt |
float | m_fT0 |
Minimal abstract trace description structure.
ZqbAbstrTrace::ZqbAbstrTrace | ( | int | samples, |
float | dt = 1.0 , |
||
float | t0 = 0.0 , |
||
const int | actual[2] = NULL |
||
) |
Create trace parameters from exact numbers.
ZqbAbstrTrace::ZqbAbstrTrace | ( | const ZqbAbstrTrace & | atr | ) |
Create trace parameters as a copy of some object.
|
virtual |
Destructor.
ZqbAbstrTrace::ZqbAbstrTrace | ( | int | samples, |
float | dt = 1.0 , |
||
float | t0 = 0.0 , |
||
const int | actual[2] = NULL |
||
) |
Create trace parameters from exact numbers.
ZqbAbstrTrace::ZqbAbstrTrace | ( | const ZqbAbstrTrace & | atr | ) |
Create trace parameters as a copy of some object.
|
virtual |
Destructor.
|
virtual |
Assign new values.
|
virtual |
Assign new values.
|
virtual |
Convert time to floating point sample index.
|
virtual |
Convert time to floating point sample index.
|
inline |
Get times of the trace.
|
inline |
Get times of the trace.
|
inline |
Check for not equal number of samples, dt and t0.
|
inline |
Check for not equal number of samples, dt and t0.
ZqbAbstrTrace& ZqbAbstrTrace::operator= | ( | const ZqbAbstrTrace & | atr | ) |
Assign trace parameters.
ZqbAbstrTrace& ZqbAbstrTrace::operator= | ( | const ZqbAbstrTrace & | atr | ) |
Assign trace parameters.
|
virtual |
Check for equal number of samples, dt and t0.
|
virtual |
Check for equal number of samples, dt and t0.
|
virtual |
Return sample value for given time considering interpolation of given order (0, 1, 2 or 3) and sample bounds.
|
virtual |
Return sample value for given time considering interpolation of given order (0, 1, 2 or 3) and sample bounds.
|
virtual |
Convert sample index to time.
|
virtual |
Convert sample index to time.
|
virtual |
Make the whole range to be actual.
|
virtual |
Make the whole range to be actual.
|
virtual |
Convert time to sample index.
|
virtual |
Convert time to sample index.
|
virtual |
Convert floating point sample index to time.
|
virtual |
Convert floating point sample index to time.
float ZqbAbstrTrace::m_fDt |
sampling rate, ms
float ZqbAbstrTrace::m_fT0 |
time of the first sample, ms
int ZqbAbstrTrace::m_iActual |
actual range of samples
int ZqbAbstrTrace::m_nSamples |
number of samples