3 #ifndef __corr_wave_detector_hpp
4 #define __corr_wave_detector_hpp
6 #include <s2proc/wave_field.hpp>
7 #include <s2proc/u_abs_hod.hpp>
8 #include <mth/medmean.hpp>
11 #include "abstract_wave_detector.hpp"
19 CorrWaveDetector(
size_t sb_size,
size_t sb_step,
size_t start_smpl,
size_t end_smpl);
31 virtual bool calc(
Trace &tr)
const;
33 bool getCorrVal(
size_t start_smpl,
size_t length,
int win_number,
float &corr_val)
const;
43 mutable std::map<int, std::map<std::pair<int, int>,
float > > m_corr_map;
54 badness(
const std::vector<float> &v)
57 for(
size_t i=0; i<v.size(); i++)
62 for(
size_t i=0; i<v.size(); i++)
63 D+=(v[i]-mean)*(v[i]-mean);
70 float operator()()
const
77 float operator()(
const float &v)
const
Definition: corr_wave_detector.hpp:52
Definition: corr_wave_detector.hpp:13
Definition: abstract_wave_detector.hpp:7
Definition: wave_field.hpp:13