Loader
Loader
Classes
| Name | |
|---|---|
| struct | Loader::BinaryAnalogOptions |
| struct | Loader::CSVSingleColumnOptions |
| struct | Loader::CSVPairColumnOptions |
| struct | Loader::CSVMultiColumnOptions |
| struct | Loader::HDF5LoadOptions |
Functions
| Name | |
|---|---|
| template <typename T > std::vector< T > |
readBinaryFile(BinaryAnalogOptions const & options) readBinaryFile |
| template <typename T > std::vector< std::vector< T > > |
readBinaryFileMultiChannel(BinaryAnalogOptions const & options) |
| template <typename T ,typename std::enable_if< std::is_integral< T >::value &&std::is_unsigned< T >::value, int >::type =0> std::vector< int > |
extractDigitalData(std::vector< T > const & data, int channel) extractDigitalData |
| std::vector< TimeFrameIndex > | extractEvents(std::vector< int > const & digital_data, std::string const & transition) |
| std::vector< std::pair< float, float > > | extractIntervals(std::vector< int > const & digital_data, std::string const & transition) |
| std::vector< float > | loadSingleColumnCSV(CSVSingleColumnOptions const & opts) |
| std::vector< std::pair< float, float > > | loadPairColumnCSV(CSVPairColumnOptions const & opts) |
| std::map< int, std::vector< float > > | loadMultiColumnCSV(CSVMultiColumnOptions const & opts) |
| hdf5::HDF5LoadOptions | convert_options(HDF5LoadOptions const & opts) |
| std::vector< std::vector< float > > | read_ragged_hdf5(HDF5LoadOptions const & opts) |
| std::vector< int > | read_array_hdf5(HDF5LoadOptions const & opts) |
Functions Documentation
function readBinaryFile
template <typename T >
inline std::vector< T > readBinaryFile(
BinaryAnalogOptions const & options
)readBinaryFile
Parameters:
- file_path Path to the binary file
- header_size_bytes (optional) Number of bytes to skip at the beginning of the file
Return: std::vector
Reads a binary file and returns the data as a vector of type T
function readBinaryFileMultiChannel
template <typename T >
inline std::vector< std::vector< T > > readBinaryFileMultiChannel(
BinaryAnalogOptions const & options
)function extractDigitalData
template <typename T ,
typename std::enable_if< std::is_integral< T >::value &&std::is_unsigned< T >::value, int >::type =0>
std::vector< int > extractDigitalData(
std::vector< T > const & data,
int channel
)extractDigitalData
Parameters:
- data Vector of data
- channel Channel to extract
Return: std::vector
This reads a vector of unsigned ints where each bit represents a digital channel and extracts the data for a specific channel (1 or 0)
function extractEvents
inline std::vector< TimeFrameIndex > extractEvents(
std::vector< int > const & digital_data,
std::string const & transition
)function extractIntervals
inline std::vector< std::pair< float, float > > extractIntervals(
std::vector< int > const & digital_data,
std::string const & transition
)function loadSingleColumnCSV
std::vector< float > loadSingleColumnCSV(
CSVSingleColumnOptions const & opts
)function loadPairColumnCSV
std::vector< std::pair< float, float > > loadPairColumnCSV(
CSVPairColumnOptions const & opts
)function loadMultiColumnCSV
std::map< int, std::vector< float > > loadMultiColumnCSV(
CSVMultiColumnOptions const & opts
)function convert_options
static hdf5::HDF5LoadOptions convert_options(
HDF5LoadOptions const & opts
)function read_ragged_hdf5
std::vector< std::vector< float > > read_ragged_hdf5(
HDF5LoadOptions const & opts
)function read_array_hdf5
std::vector< int > read_array_hdf5(
HDF5LoadOptions const & opts
)Updated on 2026-11-13 at 20:25:42 +0000