48 #ifndef MUI_TEMPORAL_SAMPLER_GAUSS_H_
49 #define MUI_TEMPORAL_SAMPLER_GAUSS_H_
51 #include "../../general/util.h"
52 #include "../../config.h"
58 using REAL =
typename CONFIG::REAL;
59 using INT =
typename CONFIG::INT;
69 template<
typename TYPE>
70 TYPE
filter(
time_type focus,
const std::vector<std::pair<std::pair<time_type,iterator_type>, TYPE> > &points )
const {
73 for(
auto i: points ) {
74 time_type dt = std::abs(i.first.first - focus);
81 return ( wsum > std::numeric_limits<REAL>::epsilon() ) ? ( vsum / wsum ) : TYPE(0);
85 template<
typename TYPE>
86 TYPE
filter( std::pair<time_type,iterator_type> focus,
const std::vector<std::pair<std::pair<time_type,iterator_type>, TYPE> > &points )
const {
89 for(
auto i: points ) {
90 time_type dt1 = std::abs(i.first.first - focus.first);
97 return ( wsum > std::numeric_limits<REAL>::epsilon() ) ? ( vsum / wsum ) : TYPE(0);
Definition: temporal_sampler_gauss.h:56
time_type cutoff_
Definition: temporal_sampler_gauss.h:113
time_type get_lower_bound(time_type focus) const
Definition: temporal_sampler_gauss.h:104
typename CONFIG::iterator_type iterator_type
Definition: temporal_sampler_gauss.h:61
temporal_sampler_gauss(time_type cutoff, REAL sigma)
Definition: temporal_sampler_gauss.h:63
typename CONFIG::time_type time_type
Definition: temporal_sampler_gauss.h:60
typename CONFIG::REAL REAL
Definition: temporal_sampler_gauss.h:58
TYPE filter(time_type focus, const std::vector< std::pair< std::pair< time_type, iterator_type >, TYPE > > &points) const
Definition: temporal_sampler_gauss.h:70
time_type get_upper_bound(time_type focus) const
Definition: temporal_sampler_gauss.h:100
time_type tolerance() const
Definition: temporal_sampler_gauss.h:108
TYPE filter(std::pair< time_type, iterator_type > focus, const std::vector< std::pair< std::pair< time_type, iterator_type >, TYPE > > &points) const
Definition: temporal_sampler_gauss.h:86
typename CONFIG::INT INT
Definition: temporal_sampler_gauss.h:59
REAL sigma_
Definition: temporal_sampler_gauss.h:114