3 #ifndef __psc_ts_dispersion_residual_hpp
4 #define __psc_ts_dispersion_residual_hpp
11 #include <residual.hpp>
12 #include <psc_service.hpp>
13 #include <psc_ts_container.hpp>
15 #include <mth/residual.hpp>
16 #include <s2proc/psc_service.hpp>
17 #include <s2proc/psc_ts_container.hpp>
72 std::pair<int,int> ids_range;
74 unsigned int corr_dir;
81 dt_vec(std::vector<double>(size, 0)),
82 w_vec(std::vector<double>(size, 0)),
83 points_num_vec(std::vector<int>(size, 0))
86 size_t size()
const {
return dt_vec.size();}
88 std::vector<double> dt_vec;
89 std::vector<double> w_vec;
90 std::vector<int> points_num_vec;
100 virtual double calc(
const std::vector<double> &dt_vec)
const;
105 bool get_ids_range(
const int id,
107 const std::pair<int,int> &full_ids_range,
108 std::pair<int,int> &ids_range)
const;
111 virtual void progress(
const int cur,
const int max)
const;
Trace::Header::AttrId hdr_attr
Definition: psc_ts_dispersion_residual.hpp:38
Definition: residual.hpp:9
TsDispersionResidual(TsContainer &ts_container, const Params ¶ms=Params())
Definition: psc_ts_container.hpp:20
float TimeT
Definition: trace.hpp:22
Definition: psc_ts_dispersion_residual.hpp:29
const Params & params() const
Definition: psc_ts_dispersion_residual.hpp:58
Definition: psc_ts_dispersion_residual.hpp:24
Definition: psc_ts_dispersion_residual.hpp:69
int id
Definition: psc_ts_dispersion_residual.hpp:39
Params m_params
Definition: psc_ts_dispersion_residual.hpp:94
virtual ~TsDispersionResidual()
Definition: psc_ts_dispersion_residual.hpp:78
bool get_ts_curve(const TsCurveParams &cp, TsCurveResult &cr) const
const TsContainer & tsContainer() const
Definition: psc_ts_dispersion_residual.hpp:65
float min_available_weight
Definition: psc_ts_dispersion_residual.hpp:42
virtual double calc(const std::vector< double > &dt_vec) const
virtual void progress(const int cur, const int max) const
int max_trs_in_base
Definition: psc_ts_dispersion_residual.hpp:40
TsContainer & tsContainer()
Definition: psc_ts_dispersion_residual.hpp:62
Params & params()
Definition: psc_ts_dispersion_residual.hpp:55