16 std::vector<unsigned int>& start_ticks,
17 std::vector<unsigned int>& end_ticks)
24 for (
unsigned int i_tick = 0; i_tick < signal.size(); i_tick++) {
27 start_ticks.push_back(i_tick);
30 else if (in_RAT && signal[i_tick] <
fThreshold) {
31 end_ticks.push_back(i_tick);
36 if (in_RAT) end_ticks.push_back(signal.size());
38 if (end_ticks.size() != start_ticks.size())
39 throw std::runtime_error(
40 "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)