|
|
| SavitzkyGolayFilter (unsigned m, int t, unsigned n, unsigned s, double dt=1.) |
| |
|
| SavitzkyGolayFilter (const SavitzkyGolayFilterConfig &conf) |
| |
|
void | configure (const SavitzkyGolayFilterConfig &conf) |
| |
| template<typename ContainerT > |
| ContainerT::value_type | filter (const ContainerT &v) const |
| | Apply Savitzky-Golay convolution to the data x should have size 2*m+1 As the function only applies a convolution, it runs in O(2m+1), and should be rather fast. More...
|
| |
|
std::vector< double > | weights () const |
| |
|
SavitzkyGolayFilterConfig | config () const |
| |
◆ filter()
template<typename ContainerT >
| ContainerT::value_type savgol::SavitzkyGolayFilter::filter |
( |
const ContainerT & |
v | ) |
const |
|
inline |
Apply Savitzky-Golay convolution to the data x should have size 2*m+1 As the function only applies a convolution, it runs in O(2m+1), and should be rather fast.
- Parameters
-
| v | Container with the data to be filtered. Should have 2*m+1 elements Type of elements needs to be compatible with multiplication by a scalar, and addition with itself Common types would be std::vector<double>, std::vector<Eigen::VectorXd>, boost::circular_buffer<Eigen::Vector3d>... |
- Returns
- Filtered value according to the precomputed filter weights.
The documentation for this struct was generated from the following file: