3 #ifndef __polarity_wave_detector_hpp
4 #define __polarity_wave_detector_hpp
6 #include <lapackpp/laslv.h>
7 #include <s2proc/abstract_wave_detector.hpp>
22 bool setTFB(
size_t app_tfb);
28 static float calcRatio(
const float& E1,
const float& E2);
41 PolarityParams(
const double& r1,
const double& r2) : R1(r1), R2(r2) {}
43 typedef std::vector<PolarityParams> PolarityParamsAr;
49 std::map<size_t, PolarityWaveDetector::PolarityParams>&);
51 bool formDetectorData(
Trace &tr)
const;
69 bool getMatrix(LaGenMatDouble& matrix)
const;
size_t m_sb_step
Definition: polarity_wave_detector.hpp:88
double getAvValue(size_t tr) const
bool appendTracePointer(const Trace &tr) const
bool m_ready
Definition: polarity_wave_detector.hpp:90
Definition: abstract_wave_detector.hpp:7
static void interpolatePolParams(const size_t &, const size_t &, const PolarityWaveDetector::PolarityParams &, const PolarityWaveDetector::PolarityParams &, std::map< size_t, PolarityWaveDetector::PolarityParams > &)
double getMatrixItem(size_t tr1, size_t tr2) const
bool getMatrix(LaGenMatDouble &matrix) const
virtual bool calc(Trace &tr) const
Definition: polarity_wave_detector.hpp:37
size_t m_time_base
Definition: polarity_wave_detector.hpp:84
bool setTFB(size_t app_tfb)
static float calcRatio(const float &E1, const float &E2)
std::vector< const Trace * > m_traces
Definition: polarity_wave_detector.hpp:80
bool getWinPolarityParams(PolarityWaveDetector::PolarityParams ¶ms, const size_t &s0, const size_t &s1) const
bool formParamsAr(PolarityParamsAr &) const
size_t m_sbase
Definition: polarity_wave_detector.hpp:86
Definition: polarity_wave_detector.hpp:9
size_t m_tfb
Definition: polarity_wave_detector.hpp:82
bool getPolarityParams(PolarityWaveDetector::PolarityParams ¶ms) const