3 #ifndef __zqb_abstr_trace_hpp
4 #define __zqb_abstr_trace_hpp
26 float dt = 1.0,
float t0 = 0.0,
27 const int actual[2] = NULL);
40 virtual void assign (
int samples,
41 float dt = 1.0,
float t0 = 0.0,
42 const int actual[2] = NULL);
54 virtual float toTime (
float fSampleIndex)
const;
57 virtual float fromTime (
float fTime)
const;
70 virtual float sample (
const float* trace,
float t,
85 float interp1 (
const float* trace,
float t)
const;
89 float interp2 (
const float* trace,
float t)
const;
93 float interp3 (
const float* trace,
float t)
const;
ZqbAbstrTrace(int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL)
float m_fDt
Definition: zqb_abstr_trace.hpp:19
void getTimes(double t[2]) const
Definition: zqb_abstr_trace.hpp:74
virtual void assign(int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL)
virtual float sample(const float *trace, float t, int order=1) const
virtual float fromTime(float fTime) const
Definition: zqb_abstr_trace.hpp:13
int m_iActual[2]
Definition: zqb_abstr_trace.hpp:18
virtual float toTime(float fSampleIndex) const
virtual int time2sample(float t) const
float m_fT0
Definition: zqb_abstr_trace.hpp:20
bool operator!=(const ZqbAbstrTrace &atr) const
Definition: zqb_abstr_trace.hpp:63
virtual float sample2time(int i) const
ZqbAbstrTrace & operator=(const ZqbAbstrTrace &atr)
virtual void setAllActual()
virtual bool operator==(const ZqbAbstrTrace &atr) const
int m_nSamples
Definition: zqb_abstr_trace.hpp:17