48 #ifndef MUI_TEMPORAL_SAMPLER_SUM_H_
49 #define MUI_TEMPORAL_SAMPLER_SUM_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 if ( i.first.first <= focus +
right_ && i.first.first >= focus -
left_ ) {
83 template<
typename TYPE>
84 TYPE
filter( std::pair<time_type,iterator_type> focus,
const std::vector<std::pair<std::pair<time_type,iterator_type>, TYPE> > &points )
const {
87 for(
auto i: points ) {
88 if ( i.first.first <= focus.first +
right_ && i.first.first >= focus.first -
left_ ) {
101 return focus -
left_;
Definition: temporal_sampler_sum.h:56
typename CONFIG::time_type time_type
Definition: temporal_sampler_sum.h:60
time_type tolerance() const
Definition: temporal_sampler_sum.h:104
typename CONFIG::INT INT
Definition: temporal_sampler_sum.h:59
typename CONFIG::REAL REAL
Definition: temporal_sampler_sum.h:58
temporal_sampler_sum(time_type left=time_type(0), time_type right=time_type(0))
Definition: temporal_sampler_sum.h:63
typename CONFIG::iterator_type iterator_type
Definition: temporal_sampler_sum.h:61
time_type right_
Definition: temporal_sampler_sum.h:110
time_type left_
Definition: temporal_sampler_sum.h:109
time_type get_lower_bound(time_type focus) const
Definition: temporal_sampler_sum.h:100
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_sum.h:84
time_type get_upper_bound(time_type focus) const
Definition: temporal_sampler_sum.h:96
TYPE filter(time_type focus, const std::vector< std::pair< std::pair< time_type, iterator_type >, TYPE > > &points) const
Definition: temporal_sampler_sum.h:70
SCALAR sum(vexpr< E, SCALAR, D > const &u)
Definition: point.h:362