ProteoWizard
Public Member Functions | Private Attributes | List of all members
pwiz::analysis::SavitzkyGolaySmoother Struct Reference

#include <SavitzkyGolaySmoother.hpp>

Inheritance diagram for pwiz::analysis::SavitzkyGolaySmoother:
pwiz::analysis::Smoother

Public Member Functions

 SavitzkyGolaySmoother (int polynomialOrder, int windowSize)
 
 ~SavitzkyGolaySmoother ()
 
virtual void smooth (const std::vector< double > &x, const std::vector< double > &y, std::vector< double > &xSmoothed, std::vector< double > &ySmoothed)
 smooth y values to existing vectors using Savitzky-Golay algorithm; preconditions: More...
 
virtual void smooth_copy (std::vector< double > &x, std::vector< double > &y)
 smooth y values and copy back to the input vectors using Savitzky-Golay algorithm; preconditions: More...
 
- Public Member Functions inherited from pwiz::analysis::Smoother
virtual ~Smoother ()
 

Private Attributes

boost::shared_ptr< Impl > impl_
 

Detailed Description

Definition at line 36 of file SavitzkyGolaySmoother.hpp.

Constructor & Destructor Documentation

§ SavitzkyGolaySmoother()

pwiz::analysis::SavitzkyGolaySmoother::SavitzkyGolaySmoother ( int  polynomialOrder,
int  windowSize 
)

§ ~SavitzkyGolaySmoother()

pwiz::analysis::SavitzkyGolaySmoother::~SavitzkyGolaySmoother ( )

Member Function Documentation

§ smooth()

virtual void pwiz::analysis::SavitzkyGolaySmoother::smooth ( const std::vector< double > &  x,
const std::vector< double > &  y,
std::vector< double > &  xSmoothed,
std::vector< double > &  ySmoothed 
)
virtual

smooth y values to existing vectors using Savitzky-Golay algorithm; preconditions:

  • samples within the window must be (approximately) equally spaced

Implements pwiz::analysis::Smoother.

§ smooth_copy()

virtual void pwiz::analysis::SavitzkyGolaySmoother::smooth_copy ( std::vector< double > &  x,
std::vector< double > &  y 
)
virtual

smooth y values and copy back to the input vectors using Savitzky-Golay algorithm; preconditions:

  • samples within the window must be (approximately) equally spaced

Implements pwiz::analysis::Smoother.

Member Data Documentation

§ impl_

boost::shared_ptr<Impl> pwiz::analysis::SavitzkyGolaySmoother::impl_
private

Definition at line 53 of file SavitzkyGolaySmoother.hpp.


The documentation for this struct was generated from the following file: