#include <algorithm>
#include <cmath>
#include <cstddef>
#include <sstream>
#include <string>
#include <vector>
Go to the source code of this file.
|
| std::vector< size_t > | jaiabot::utils::downsampleIndices (const std::vector< Point > &data, size_t target_size) |
| | Selects representative point indices while preserving the overall curve shape.
|
| bool | jaiabot::utils::parseDataRowValues (const std::string &line, std::vector< double > &values_out, size_t min_value_count=2) |
| | Parses a data row into its numeric columns after the integer row index.
|
| bool | jaiabot::utils::parseDataRow (const std::string &line, Point &point_out) |
| | Parses a data row into a point using the first and last numeric columns.
|
| size_t | jaiabot::utils::joinedSizeBytes (const std::vector< std::string > &lines) |
| | Computes the serialized byte size of lines joined with newline separators.
|
| std::vector< std::string > | jaiabot::utils::buildOutputWithSelectedRows (const std::vector< std::string > &input_lines, const std::vector< size_t > &data_line_positions, const std::vector< size_t > &selected_row_indices) |
| | Rebuilds the output while preserving metadata lines and selected data rows.
|
| template<typename XSelector, typename YSelector> |
| std::vector< std::string > | jaiabot::utils::downsampleDatasetToMaxBytes (const std::vector< std::string > &input_lines, size_t max_bytes, size_t min_value_count, XSelector x_selector, YSelector y_selector) |
| | Downsamples data rows to fit within a maximum serialized byte budget.
|