Simulation

Huxon language allows the simulation of every application with custom datasets with the provided huxc tool that can be found inside the DevKit.

Utility methods are available to ease the dataset loading process into the application:

namespace simulation

This namespace contains simulation utilities for Huxon language algorithms.

Functions

template<typename ...types_t>
auto load_csv(const std::string path, const std::string delimiter)

Reads a CSV file and returns a hux::tuple of std::vector instances to use in a simulation data trace (see HUX_DECLARE_SIMULATION_DATA).

The first line of the CSV file is ignored hence reserved to the user for custom labels (e.g. columns’ name). CSV files must be placed inside the application folder and their paths must be specified as a relative path to the application folder.

Template Parameters

...types_t – the data type of every CSV data column to be inserted in each corresponding std::vector

Parameters
  • path – the relative path to the input CSV file

  • delimiter – a std::string of length 1 containing the custom data delimiter used in the csv file

Returns

a hux::tuple of std::vector of types …types_t