41 if (!file.is_open())
return false;
45 PRINT_ERROR_NAMED(
"time dimension does not match number of columns in values matrix");
65 file << time_series.
getTime()[i];
#define PRINT_ERROR_NAMED(msg)
Time Series (trajectory resp. sequence of values w.r.t. time)
const TimeSeries * getTimeSeries() const
Read access to the underlying time series object (returns null if not initialized) ...
bool exportTimeSeries(const std::string &filename, const TimeSeries &time_series) override
int getValueDimension() const
Return dimension of the value vector.
int getTimeDimension() const
Return dimension of the time vector.
ValuesMatConstMap getValuesMatrixView() const
Read access to the complete values matrix in Eigen matrix format [getValueDimension() x getTimeDimens...
const std::vector< double > & getTime() const
Read access to the underlying time values [getTimeDimension() x 1].
Time Series signal (trajectory resp. sequence of values w.r.t. time)
const std::vector< std::string > & getValueLabels() const
Read individual value labels (non-empty if provided)
bool exportTimeSeriesSignal(const std::string &filename, const TimeSeriesSignal &signal) override
Eigen::Map< const Eigen::VectorXd > getValuesMap(int time_idx) const
Read access to a value vector at a given time idx (< getTimeDimension) without copying.