|
| TimeSeriesTable_ ()=default |
|
| TimeSeriesTable_ (const TimeSeriesTable_ &)=default |
|
| TimeSeriesTable_ (TimeSeriesTable_ &&)=default |
|
TimeSeriesTable_ & | operator= (const TimeSeriesTable_ &)=default |
|
TimeSeriesTable_ & | operator= (TimeSeriesTable_ &&)=default |
|
| ~TimeSeriesTable_ ()=default |
|
| TimeSeriesTable_ (const std::vector< double > &indVec, const SimTK::Matrix_< ETY > &depData, const std::vector< std::string > &labels) |
| Convenience constructor to efficiently populate a time series table from available data. More...
|
|
| TimeSeriesTable_ (const std::vector< double > &indVec) |
| Construct a table with only the independent (time) column and 0 dependent columns. More...
|
|
| TimeSeriesTable_ (const DataTable_< double, ETY > &datatable) |
| Construct a TimeSeriesTable_ from a DataTable_. More...
|
|
| TimeSeriesTable_ (const std::string &filename) |
| Construct TimeSeriesTable_ from a file. More...
|
|
| TimeSeriesTable_ (const std::string &filename, const std::string &tablename) |
| Construct TimeSeriesTable_ from a file. More...
|
|
size_t | getNearestRowIndexForTime (const double time, const bool restrictToTimeRange=true) const |
| Get index of row whose time is nearest/closest to the given value. More...
|
|
size_t | getRowIndexAfterTime (const double &time) const |
| Get index of row whose time is first to be higher than the given value. More...
|
|
size_t | getRowIndexBeforeTime (const double &time) const |
| Get index of row whose time is the largest time less than the given value. More...
|
|
RowVectorView | getNearestRow (const double &time, const bool restrictToTimeRange=true) const |
| Get row whose time column is nearest/closest to the given value. More...
|
|
RowVectorView | updNearestRow (const double &time, const bool restrictToTimeRange=true) |
| Get writable reference to row whose time column is nearest/closest to the given value. More...
|
|
RowVector | averageRow (const double &beginTime, const double &endTime) const |
| Compute the average row in the time range (inclusive) given. More...
|
|
void | trim (const double &newStartTime, const double &newFinalTime) |
| Trim TimeSeriesTable to rows that have times that lies between newStartTime and newFinalTime (inclusive). More...
|
|
void | trimFrom (const double &newStartTime) |
| trim TimeSeriesTable, keeping rows at newStartTime to the end. More...
|
|
void | trimTo (const double &newFinalTime) |
| trim TimeSeriesTable, keeping rows up to newFinalTime More...
|
|
void | trimToIndices (const size_t &start_index, const size_t &last_index) |
| Trim table to rows between start_index and last_index (inclusive). More...
|
|
| DataTable_ ()=default |
|
| DataTable_ (const DataTable_ &)=default |
|
| DataTable_ (DataTable_ &&)=default |
|
| DataTable_ (const std::string &filename, const std::string &tablename) |
| Construct DataTable_ from a file. More...
|
|
| DataTable_ (const DataTable_< double, ThatETY > &that, const std::vector< std::string > &suffixes) |
| Construct DataTable_<double, double> from DataTable_<double, ThatETY> where ThatETY can be SimTK::Vec<X>. More...
|
|
| DataTable_ (const DataTable_< double, double > &that, const std::vector< std::string > &suffixes) |
| Construct this DataTable from a DataTable_<double, double>. More...
|
|
| DataTable_ (const DataTable_< double, ThatETY > &that) |
| Construct DataTable_<double, double> from DataTable_<double, ThatETY> where ThatETY can be SimTK::Vec<X>. More...
|
|
DataTable_ & | operator= (const DataTable_ &)=default |
|
DataTable_ & | operator= (DataTable_ &&)=default |
|
DataTable_ & | operator= (const DataTable_< double, ThatETY > &that) |
| Copy assign a DataTable_<double, double> from DataTable_<double, ThatETY> where ThatETY can be SimTK::Vec<X>. More...
|
|
| ~DataTable_ ()=default |
|
std::shared_ptr< AbstractDataTable > | clone () const override |
|
DataTable_< double, double > | flatten () const |
| Flatten the columns of this table to create a DataTable_<double, double>. More...
|
|
DataTable_< double, double > | flatten (const std::vector< std::string > &suffixes) const |
| Flatten the columns of this table to create a DataTable_<double, double>. More...
|
|
DataTable_< double, ThatETY > | pack () const |
| Pack the columns of this table to create a DataTable_<double, ThatETY>, where 'ThatETY' is the template parameter which can be SimTK::Vec3, SimTK::UnitVec3, SimTK::Quaternion, SimTK::SpatialVec and so on. More...
|
|
DataTable_< double, ThatETY > | pack (const std::vector< std::string > &suffixes) const |
| Pack the columns of this table to create a DataTable_<double, ThatETY>, where 'ThatETY' is the template parameter which can be SimTK::Vec3, SimTK::UnitVec3, SimTK::Quaternion, SimTK::SpatialVec and so on. More...
|
|
unsigned | numComponentsPerElement () const override |
| Retrieve the number of components each element (of type ETY) of the table is made of. More...
|
|
std::string | toString (std::vector< int > rows={}, std::vector< std::string > columnLabels={}, const bool withMetaData=true, unsigned splitSize=25, unsigned maxWidth=80, unsigned precision=4) const |
| Get a string representation of the table, including the key-value pairs in the table metadata. More...
|
|
void | appendRow (const double &indRow, const Container &container) |
| Append row to the DataTable_. More...
|
|
void | appendRow (const double &indRow, const std::initializer_list< ETY > &container) |
| Append row to the DataTable_. More...
|
|
void | appendRow (const double &indRow, RowIter begin, RowIter end) |
| Append row to the DataTable_. More...
|
|
void | appendRow (const double &indRow, const RowVector &depRow) |
| Append row to the DataTable_. More...
|
|
void | appendRow (const double &indRow, const RowVectorView &depRow) |
| Append row to the DataTable_. More...
|
|
const RowVectorView | getRowAtIndex (size_t index) const |
| Get row at index. More...
|
|
const RowVectorView | getRow (const double &ind) const |
| Get row corresponding to the given entry in the independent column. More...
|
|
RowVectorView | updRowAtIndex (size_t index) |
| Update row at index. More...
|
|
RowVectorView | updRow (const double &ind) |
| Update row corresponding to the given entry in the independent column. More...
|
|
void | setRowAtIndex (size_t index, const RowVectorView &depRow) |
| Set row at index. More...
|
|
void | setRowAtIndex (size_t index, const RowVector &depRow) |
| Set row at index. More...
|
|
void | setRow (const double &ind, const RowVectorView &depRow) |
| Set row corresponding to the given entry in the independent column. More...
|
|
void | setRow (const double &ind, const RowVector &depRow) |
| Set row corresponding to the given entry in the independent column. More...
|
|
void | removeRowAtIndex (size_t index) |
| Remove row at index. More...
|
|
void | removeRow (const double &ind) |
| Remove row corresponding to the given entry in the independent column. More...
|
|
const std::vector< double > & | getIndependentColumn () const |
| Get independent column. More...
|
|
void | appendColumn (const std::string &columnLabel, const Container &container) |
| Append column to the DataTable_ using a sequence container. More...
|
|
void | appendColumn (const std::string &columnLabel, const std::initializer_list< ETY > &container) |
| Append column to the DataTable_ using an initializer list. More...
|
|
void | appendColumn (const std::string &columnLabel, ColIter begin, ColIter end) |
| Append column to the DataTable_ using an iterator pair. More...
|
|
void | appendColumn (const std::string &columnLabel, const Vector &depCol) |
| Append column to the DataTable_ using a SimTK::Vector. More...
|
|
void | appendColumn (const std::string &columnLabel, const VectorView &depCol) |
| Append column to the DataTable_ using a SimTK::VectorView. More...
|
|
void | removeColumnAtIndex (size_t index) |
| Remove column corresponding to the given column index. More...
|
|
void | removeColumn (const std::string &columnLabel) |
| Remove column corresponding to the given dependent column label. More...
|
|
VectorView | getDependentColumnAtIndex (size_t index) const |
| Get dependent column at index. More...
|
|
VectorView | getDependentColumn (const std::string &columnLabel) const |
| Get dependent Column which has the given column label. More...
|
|
VectorView | updDependentColumnAtIndex (size_t index) |
| Update dependent column at index. More...
|
|
VectorView | updDependentColumn (const std::string &columnLabel) |
| Update dependent Column which has the given column label. More...
|
|
void | setIndependentValueAtIndex (size_t rowIndex, const double &value) |
| Set value of the independent column at index. More...
|
|
const MatrixView & | getMatrix () const |
| Get a read-only view to the underlying matrix. More...
|
|
MatrixView | getMatrixBlock (size_t rowStart, size_t columnStart, size_t numRows, size_t numColumns) const |
| Get a read-only view of a block of the underlying matrix. More...
|
|
MatrixView & | updMatrix () |
| Get a writable view to the underlying matrix. More...
|
|
MatrixView | updMatrixBlock (size_t rowStart, size_t columnStart, size_t numRows, size_t numColumns) |
| Get a writable view of a block of the underlying matrix. More...
|
|
| AbstractDataTable ()=default |
|
| AbstractDataTable (const AbstractDataTable &)=default |
|
| AbstractDataTable (AbstractDataTable &&)=default |
|
AbstractDataTable & | operator= (const AbstractDataTable &)=default |
|
AbstractDataTable & | operator= (AbstractDataTable &&)=default |
|
virtual | ~AbstractDataTable ()=default |
|
size_t | getNumRows () const |
| Get number of rows. More...
|
|
size_t | getNumColumns () const |
| Get number of dependent columns. More...
|
|
bool | hasColumn (const size_t columnIndex) const |
| Check if the table has a column with the given index. More...
|
|
template<typename Value > |
void | addTableMetaData (const std::string &key, const Value &value) |
| Add key-value pair to the table metadata. More...
|
|
bool | hasTableMetaDataKey (const std::string &key) const |
| Whether or not table metadata for the given key exists. More...
|
|
template<typename Value > |
Value | getTableMetaData (const std::string &key) const |
| Get table metadata for a given key. More...
|
|
std::string | getTableMetaDataAsString (const std::string &key) const |
| Get table metadata for a given key as a string. More...
|
|
void | removeTableMetaDataKey (const std::string &key) |
| Remove key-value pair associated with the given key from table metadata. More...
|
|
std::vector< std::string > | getTableMetaDataKeys () const |
| Get table metadata keys. More...
|
|
const TableMetaData & | getTableMetaData () const |
| Get metadata associated with the table. More...
|
|
TableMetaData & | updTableMetaData () |
| Update metadata associated with the table. More...
|
|
const IndependentMetaData & | getIndependentMetaData () const |
| Get metadata associated with the independent column. More...
|
|
void | setIndependentMetaData (const IndependentMetaData &independentMetaData) |
| Set metadata associated with the independent column. More...
|
|
const DependentsMetaData & | getDependentsMetaData () const |
| Get metadata associated with the dependent columns. More...
|
|
void | setDependentsMetaData (const DependentsMetaData &dependentsMetaData) |
| Set metadata associated with the dependent columns. More...
|
|
void | removeDependentsMetaDataForKey (const std::string &key) |
| Remove key-value pair associated with the given key from dependents metadata. More...
|
|
bool | hasColumnLabels () const |
| Does the table have non-zero number of column labels. More...
|
|
std::vector< std::string > | getColumnLabels () const |
| Get column labels. More...
|
|
const std::string & | getColumnLabel (const size_t columnIndex) const |
| Get column label of a given column. More...
|
|
template<typename InputIt > |
void | setColumnLabels (InputIt first, InputIt last) |
| Set column labels using a pair of iterators. More...
|
|
template<typename Container > |
void | setColumnLabels (const Container &columnLabels) |
| Set column labels using a sequence container. More...
|
|
void | setColumnLabels (const std::initializer_list< std::string > &columnLabels) |
| Set column labels using a std::initializer_list. More...
|
|
void | setColumnLabel (const size_t columnIndex, const std::string &columnLabel) |
| Set the label for a column. More...
|
|
size_t | getColumnIndex (const std::string &columnLabel) const |
| Get index of a column label. More...
|
|
bool | hasColumn (const std::string &columnLabel) const |
| Check if the table has a column with the given label. More...
|
|