128 std::map<AttrId, TrHdrAttrVal> m_attrs;
171 explicit Trace(
const Header &hdr);
178 template <
typename Iterator>
203 const AmplT&
at(
size_t n)
const;
244 const std::vector<AmplT> &tsrc,
245 const std::vector<AmplT> &tres,
246 const double &max_shift_ratio = 10e+6 );
252 static void reduce(
Trace &trace,
size_t n1,
size_t n2);
310 #include <trace_inline.hpp>
312 #include <s2proc/trace_inline.hpp>
float AmplT
Definition: trace.hpp:21
std::vector< Window > m_win_stack
Definition: trace.hpp:306
Definition: trace_inline.hpp:9
Trace operator+(const Trace &tr) const
static void expand(Trace &trace, size_t n1, size_t n2, Trace::AmplT ampl=0.)
Header & header()
Definition: trace.hpp:216
TimeT get_window_duration() const
float OffsetT
Definition: trace.hpp:23
float TimeT
Definition: trace.hpp:22
void erase(iterator first, iterator last)
const Trace & set_window(TimeT start, TimeT duration) const
const Header & header() const
Definition: trace.hpp:196
Header m_hdr
Definition: trace.hpp:293
Trace & operator+=(const Trace &that)
static void reduce(Trace &trace, size_t n1, size_t n2)
Definition: trace.hpp:299
const AmplT & at(size_t n) const
void resize(size_t n, AmplT ampl=0.)
bool operator==(const Trace &tr) const
Trace operator-(const Trace &tr) const
AmplT & operator[](size_t n)
Definition: trace.hpp:143
void remove_window() const
void fill(const AmplT &l)
static void applyKin(Trace &trace, const std::vector< AmplT > &tsrc, const std::vector< AmplT > &tres, const double &max_shift_ratio=10e+6)
Trace(const Header &hdr, Iterator first, Iterator last)
Definition: trace.hpp:179
const_iterator begin() const
std::vector< AmplT > AmplsStorageT
Definition: trace.hpp:24
TimeT get_window_start() const
const AmplT & operator[](size_t n) const
Definition: trace.hpp:140
AmplsStorageT::iterator iterator
Definition: trace.hpp:25
size_t right
Definition: trace.hpp:302
AmplsStorageT::const_iterator const_iterator
Definition: trace.hpp:26
Trace & operator=(const Trace &tr)