![]() |
sablib
|
Smoothing using Whittaker smoother. More...
Go to the source code of this file.
Functions | |
| const std::vector< double > | sablib::Whittaker (const std::vector< double > &y, const std::vector< double > &w, const double lambda, const unsigned int s=2) |
| Performs Whittaker smoothing (std::vector<double> version, with weights). | |
| const std::vector< double > | sablib::Whittaker (const std::vector< double > &y, const double lambda, const unsigned int s=2) |
| Performs Whittaker smoothing (std::vector<double> version, without weights). | |
| template<typename Derived> | |
| const Derived::PlainObject | sablib::Whittaker (const Eigen::MatrixBase< Derived > &y, const Eigen::MatrixBase< Derived > &w, const Eigen::SparseMatrix< typename Derived::PlainObject::Scalar > &lambdaDTD) |
| Performs Whittaker smoothing. | |
Smoothing using Whittaker smoother.
References:
Definition in file whittaker.h.
| const Derived::PlainObject sablib::Whittaker | ( | const Eigen::MatrixBase< Derived > & | y, |
| const Eigen::MatrixBase< Derived > & | w, | ||
| const Eigen::SparseMatrix< typename Derived::PlainObject::Scalar > & | lambdaDTD ) |
Performs Whittaker smoothing.
| y | The input data to be smoothed. |
| w | Weights for each data point. |
| lambdaDTD | The matrix used for smoothness (lambda * D' * D). |
Definition at line 58 of file whittaker.h.
| const std::vector< double > sablib::Whittaker | ( | const std::vector< double > & | y, |
| const double | lambda, | ||
| const unsigned int | s = 2 ) |
Performs Whittaker smoothing (std::vector<double> version, without weights).
| y | The input data to be smoothed. |
| lambda | Smoothing parameter (larger values lead to more smoothing, but may flatten peaks). |
| s | The order of the difference (usually s = 1, 2, or 3). |
Definition at line 58 of file whittaker.cpp.
| const std::vector< double > sablib::Whittaker | ( | const std::vector< double > & | y, |
| const std::vector< double > & | w, | ||
| const double | lambda, | ||
| const unsigned int | s = 2 ) |
Performs Whittaker smoothing (std::vector<double> version, with weights).
| y | The input data to be smoothed. |
| w | Weights for each data point. |
| lambda | Smoothing parameter (larger values lead to more smoothing, but may flatten peaks). |
| s | The order of the difference (usually s = 1, 2, or 3). |
| std::invalid_argument | One or more parameters wrong. |
Definition at line 14 of file whittaker.cpp.