| 8 | namespace PJ::proc { |
| 9 | |
| 10 | void DataProcessor::appendTail(const std::vector<Sample>& tail, std::vector<Sample>& out) { |
| 11 | out.reserve(out.size() + tail.size()); |
| 12 | for (const Sample& in : tail) { |
| 13 | if (std::optional<Sample> result = calculateNextPoint(in)) { |
| 14 | out.push_back(std::move(*result)); |
| 15 | } |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | std::vector<Sample> DataProcessor::applyBatch(const std::vector<Sample>& in) { |
| 20 | reset(); |