24 #include "cheetah/spsift/SpSift.h" 32 template<
typename NumRep>
35 PANDA_LOG <<
"Total number of candidates: " << candidate_list.
size();
37 if(!_config.active())
return;
38 if (_config.maximum_candidates() > 0 && candidate_list.
size() > _config.maximum_candidates())
40 candidate_list.
resize(_config.maximum_candidates());
45 return (candidate.
dm() < _config.dm_threshold()
46 || candidate.
width() > _config.pulse_width_threshold()
47 || candidate.
sigma() < _config.sigma_threshold());
A simple record to hold 'candidate' proprerties.
void resize(std::size_t size, const ValueType &x=ValueType())
Resize the vector.
std::size_t size() const
Retrieve the size of the underlying vector.
T const & sigma() const
access a reference to _sigma.
Dm const & dm() const
access a reference to dm.
Some limits and constants for FLDO.
MsecTimeType const & width() const
access a reference to width.
void remove_if(PredicateT const &)
remove candidates that meet the specified condition
void operator()(data::SpCcl< NumRep > &candidate_list) const
remove candidates that do not fir the configured criteria