![]() |
sablib
|
Expands and Trim the boundaries of the data. More...
#include <stdexcept>#include <Eigen/Eigen>Go to the source code of this file.
Functions | |
| template<typename Derived> | |
| const Derived::PlainObject | sablib::ExpandBoundaries (const Eigen::MatrixBase< Derived > &y, const unsigned int n) |
| Expands the boundaries of a vector by padding with the first and last elements. | |
| template<typename Derived> | |
| const Derived::PlainObject | sablib::TrimBoundaries (const Eigen::MatrixBase< Derived > &y, const unsigned int n) |
| Trims the specified number of elements from both ends of a vector. | |
Expands and Trim the boundaries of the data.
Definition in file expand.h.
| const Derived::PlainObject sablib::ExpandBoundaries | ( | const Eigen::MatrixBase< Derived > & | y, |
| const unsigned int | n ) |
| const Derived::PlainObject sablib::TrimBoundaries | ( | const Eigen::MatrixBase< Derived > & | y, |
| const unsigned int | n ) |
Trims the specified number of elements from both ends of a vector.
| y | The input vector to be trimmed. |
| n | The number of elements to remove from each end. |
| std::invalid_argument | Thrown if n is larger than half the length of y. |