OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
SavitzkyGolayFilter Class Reference

#include <SavitzkyGolay.h>

Inheritance diagram for SavitzkyGolayFilter:
Collaboration diagram for SavitzkyGolayFilter:

Public Member Functions

 SavitzkyGolayFilter (int np, int nl, int nr, int m)
 ~SavitzkyGolayFilter ()
void apply (std::vector< double > &histogram)
void calc_derivative (std::vector< double > &histogram, const double &h)

Private Attributes

int NumberPoints_m
int NumberPointsLeft_m
int NumberPointsRight_m
int PolynomialOrder_m
std::vector< double > Coefs_m
std::vector< double > CoefsDeriv_m

Detailed Description

Definition at line 6 of file SavitzkyGolay.h.

Constructor & Destructor Documentation

◆ SavitzkyGolayFilter()

SavitzkyGolayFilter::SavitzkyGolayFilter ( int np,
int nl,
int nr,
int m )

Definition at line 8 of file SavitzkyGolay.cpp.

References Coefs_m, CoefsDeriv_m, nr, NumberPoints_m, NumberPointsLeft_m, NumberPointsRight_m, PolynomialOrder_m, and savgol().

Here is the call graph for this function:

◆ ~SavitzkyGolayFilter()

SavitzkyGolayFilter::~SavitzkyGolayFilter ( )
inline

Definition at line 9 of file SavitzkyGolay.h.

Member Function Documentation

◆ apply()

void SavitzkyGolayFilter::apply ( std::vector< double > & histogram)
virtual

Implements Filter.

Definition at line 19 of file SavitzkyGolay.cpp.

References Coefs_m, and convlv().

Here is the call graph for this function:

◆ calc_derivative()

void SavitzkyGolayFilter::calc_derivative ( std::vector< double > & histogram,
const double & h )
virtual

Implements Filter.

Definition at line 25 of file SavitzkyGolay.cpp.

References CoefsDeriv_m, and convlv().

Here is the call graph for this function:

Member Data Documentation

◆ Coefs_m

std::vector<double> SavitzkyGolayFilter::Coefs_m
private

Definition at line 20 of file SavitzkyGolay.h.

Referenced by apply(), and SavitzkyGolayFilter().

◆ CoefsDeriv_m

std::vector<double> SavitzkyGolayFilter::CoefsDeriv_m
private

Definition at line 21 of file SavitzkyGolay.h.

Referenced by calc_derivative(), and SavitzkyGolayFilter().

◆ NumberPoints_m

int SavitzkyGolayFilter::NumberPoints_m
private

Definition at line 16 of file SavitzkyGolay.h.

Referenced by SavitzkyGolayFilter().

◆ NumberPointsLeft_m

int SavitzkyGolayFilter::NumberPointsLeft_m
private

Definition at line 17 of file SavitzkyGolay.h.

Referenced by SavitzkyGolayFilter().

◆ NumberPointsRight_m

int SavitzkyGolayFilter::NumberPointsRight_m
private

Definition at line 18 of file SavitzkyGolay.h.

Referenced by SavitzkyGolayFilter().

◆ PolynomialOrder_m

int SavitzkyGolayFilter::PolynomialOrder_m
private

Definition at line 19 of file SavitzkyGolay.h.

Referenced by SavitzkyGolayFilter().


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