10 #include "AlgoIterator.hpp"
27 TrIterator<T> Threshold(
const TrIterator<T>& begin,
28 const TrIterator<T>& end,
31 TrIterator<T> it=begin;
32 while ( it<end && *it<thresh ) ++it;
45 TrIterator<T> Threshold(
const TrRange<T>& range,
double thresh) {
return Threshold<T>(range.begin(), range.end(), thresh);}
58 TrIterator<T> Threshold(AlgoIterator<T>& begin,
59 const TrIterator<T>& end,
63 TrIterator<T> ret_it = end;
66 AlgoIterator<T>& it = begin;
68 while ( it<end && *it<thresh ) {
73 if ( *it >= thresh) ret_it = it.min_extent();
Definition: AlgoIterator.hpp:12