numeric
Public Member Functions | List of all members
numeric::SavitzkyGolayFilter Class Reference

#include <SavitzkyGolayFilter.hpp>

Public Member Functions

 SavitzkyGolayFilter (std::vector< double > &result, int ls_point, int half_width, int poly_order, int derivative=0, double step=1)
 
 ~SavitzkyGolayFilter ()
 

Detailed Description

Compute coefficients of the Savitzky-Golay filter.

Based on: General Least-Squares smoothing and differentiation by the Convolution (Savitzky-Golay) method. By Peter A. Gory (1989)

Constructor & Destructor Documentation

◆ SavitzkyGolayFilter()

numeric::SavitzkyGolayFilter::SavitzkyGolayFilter ( std::vector< double > &  result,
int  ls_point,
int  half_width,
int  poly_order,
int  derivative = 0,
double  step = 1 
)

Compute the coefficients of Savitzky-Golay filter

Parameters
result,computedcoefficients
ls_point,Least-Squarepoint, between [-half_width, half_width]
half_width.Number of points used 2*half_width+1
poly_order,polynomialorder
derivative.0 = smooth
step.Necessary in case of derivatives, when the coefficients need to be divided by the step.

◆ ~SavitzkyGolayFilter()

numeric::SavitzkyGolayFilter::~SavitzkyGolayFilter ( )

The documentation for this class was generated from the following files: