MultiColumnBinaryCSVLoaderOptions
MultiColumnBinaryCSVLoaderOptions
Options for loading multi-column binary event data from CSV-like files. More…
#include <MultiColumnBinaryCSV.hpp>
Public Functions
| Name | |
|---|---|
| int | getHeaderLinesToSkip() const |
| int | getTimeColumn() const |
| int | getDataColumn() const |
| std::string | getDelimiter() const |
| double | getSamplingRate() const |
| double | getBinaryThreshold() const |
Public Attributes
| Name | |
|---|---|
| std::string | filepath Path to the CSV file (required). |
| std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > | header_lines_to_skip |
| std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > | time_column Column index (0-based) containing time values (default: 0). |
| std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > | data_column |
| std::optional< std::string > | delimiter Delimiter between columns (default: “ for tab-separated). |
| std::optional< rfl::Validator< double, rfl::Minimum< 0.0 > > > | sampling_rate |
| std::optional< double > | binary_threshold |
Detailed Description
struct MultiColumnBinaryCSVLoaderOptions;Options for loading multi-column binary event data from CSV-like files.
This loader handles files with the following format:
- Multiple header lines (date, time, blank lines) that can be skipped
- A column header row with column names
- Data rows with a time column and multiple binary event columns (0/1 values)
Example file format:
11/28/2025
10:23:25 AM
Time v0 v1 v2 v3 y0 y1 y2 y3
0.000000 1.000000 0.000000 0.000000 0.000000
0.000071 1.000000 0.000000 0.000000 0.000000Uses reflect-cpp for automatic JSON serialization/deserialization.
Public Functions Documentation
function getHeaderLinesToSkip
inline int getHeaderLinesToSkip() constfunction getTimeColumn
inline int getTimeColumn() constfunction getDataColumn
inline int getDataColumn() constfunction getDelimiter
inline std::string getDelimiter() constfunction getSamplingRate
inline double getSamplingRate() constfunction getBinaryThreshold
inline double getBinaryThreshold() constPublic Attributes Documentation
variable filepath
std::string filepath;Path to the CSV file (required).
variable header_lines_to_skip
std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > header_lines_to_skip;Number of header lines to skip before reaching column headers (default: 5) This includes date, time, and any blank lines before the header row
variable time_column
std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > time_column;Column index (0-based) containing time values (default: 0).
variable data_column
std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > data_column;Column index (0-based) containing binary event data to extract (default: 1) This is the column that will be converted to intervals
variable delimiter
std::optional< std::string > delimiter;Delimiter between columns (default: “ for tab-separated).
variable sampling_rate
std::optional< rfl::Validator< double, rfl::Minimum< 0.0 > > > sampling_rate;Sampling rate in Hz for converting fractional time to integer indices If provided, time values are multiplied by this rate to get integer indices If not provided (or 0), row indices are used directly as TimeFrameIndex values
variable binary_threshold
std::optional< double > binary_threshold;Threshold for considering a value as “on” (default: 0.5) Values >= threshold are considered 1, values < threshold are considered 0
Updated on 2026-11-13 at 20:25:39 +0000