92 [[nodiscard]] std::vector<Interval>
push(std::span<const double> scores, std::span<const double> gate = {});
98 [[nodiscard]] std::vector<Interval> flush();
101 void reset() noexcept;
106 [[nodiscard]] std::optional<size_t>
open_start() const noexcept
112 [[nodiscard]] std::optional<Interval>
pending() const noexcept
136 void close_run(uint32_t start, uint32_t end, std::vector<Interval>& out);
137 void reset_gap_state() noexcept;
138 void update_total() noexcept;
IntervalScanConfig m_config
const IntervalScanConfig & config() const noexcept
IntervalScanner(const IntervalScanConfig &config)
Construct a scanner.
std::vector< Interval > push(std::span< const double > scores, std::span< const double > gate={})
Continue the stream with more scores.
std::optional< Interval > pending() const noexcept
The closed interval still waiting for its padded end: its padded start and its end before trailing pa...
std::optional< size_t > open_start() const noexcept
Start of the run in progress after the last score, if one is open.
std::pair< size_t, size_t > Interval
std::string diagnose_interval_scan(const IntervalScanConfig &config)
Why a config cannot be scanned.
Settings of an IntervalScanner.