16 std::vector<unsigned int>& start_ticks,
17 std::vector<unsigned int>& end_ticks)
20 start_ticks.clear(); end_ticks.clear();
23 for(
unsigned int i_tick=0; i_tick<signal.size(); i_tick++){
26 start_ticks.push_back(i_tick);
30 end_ticks.push_back(i_tick);
37 end_ticks.push_back(signal.size());
39 if(end_ticks.size()!=start_ticks.size())
40 throw std::runtime_error(
"ERROR in RegionAboveThresholdFinder: start and end tick vectors not equal.");
void FillStartAndEndTicks(const std::vector< float > &signal, std::vector< unsigned int > &start_ticks, std::vector< unsigned int > &end_ticks)