48 #ifndef MUI_TEMPORAL_SAMPLER_EXACT_H_
49 #define MUI_TEMPORAL_SAMPLER_EXACT_H_
52 #include "../../general/util.h"
53 #include "../../config.h"
59 using REAL =
typename CONFIG::REAL;
60 using INT =
typename CONFIG::INT;
69 tolerance_time = tol*real_precision_time;
70 tolerance_it = tol*real_precision_it;
74 template<
typename TYPE>
75 TYPE
filter(
time_type focus,
const std::vector<std::pair<std::pair<time_type,iterator_type>, TYPE> > &points )
const {
76 for(
auto i: points ) {
77 time_type dt = std::abs(i.first.first - focus);
78 if ( dt <= tolerance_time ) {
87 template<
typename TYPE>
88 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 dt = std::abs(i.first.first - focus.first);
92 if ( dt <= tolerance_time && di <= tolerance_it ) {
100 template<
typename TYPE>
105 template<
typename TYPE>
Definition: temporal_sampler_exact.h:57
typename CONFIG::time_type time_type
Definition: temporal_sampler_exact.h:61
typename CONFIG::iterator_type iterator_type
Definition: temporal_sampler_exact.h:62
TYPE filter(time_type focus, const std::vector< std::pair< std::pair< time_type, iterator_type >, TYPE > > &points) const
Definition: temporal_sampler_exact.h:75
typename CONFIG::INT INT
Definition: temporal_sampler_exact.h:60
typename CONFIG::REAL REAL
Definition: temporal_sampler_exact.h:59
TYPE get_lower_bound(TYPE focus) const
Definition: temporal_sampler_exact.h:106
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_exact.h:88
temporal_sampler_exact(time_type tol=time_type(std::numeric_limits< time_type >::epsilon()))
Definition: temporal_sampler_exact.h:64
TYPE get_upper_bound(TYPE focus) const
Definition: temporal_sampler_exact.h:101
SCALAR max(vexpr< E, SCALAR, D > const &u)
Definition: point.h:350