ProteoWizard
Public Member Functions | List of all members
pwiz::analysis::Smoother Struct Referenceabstract

interface for a one-dimensional smoothing algorithm More...

#include <Smoother.hpp>

Inheritance diagram for pwiz::analysis::Smoother:
pwiz::analysis::SavitzkyGolaySmoother< T > pwiz::analysis::WhittakerSmoother

Public Member Functions

virtual void smooth (const std::vector< double > &x, const std::vector< double > &y, std::vector< double > &xSmoothed, std::vector< double > &ySmoothed)=0
 smooth y values to existing vectors; note: in the case of sparse vectors, smoothing may fill in samples not present in the original data, so make sure to check the size of the output vectors
 
virtual void smooth_copy (std::vector< double > &x, std::vector< double > &y)=0
 smooth y values and copy back to the input vectors; note: in the case of sparse vectors, smoothing may fill in samples not present in the original data, so make sure to check the size of the output vectors
 
virtual ~Smoother ()
 

Detailed Description

interface for a one-dimensional smoothing algorithm

Definition at line 37 of file Smoother.hpp.

Constructor & Destructor Documentation

◆ ~Smoother()

virtual pwiz::analysis::Smoother::~Smoother ( )
inlinevirtual

Definition at line 50 of file Smoother.hpp.

50{};

Member Function Documentation

◆ smooth()

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

smooth y values to existing vectors; note: in the case of sparse vectors, smoothing may fill in samples not present in the original data, so make sure to check the size of the output vectors

Implemented in pwiz::analysis::SavitzkyGolaySmoother< T >, and pwiz::analysis::WhittakerSmoother.

◆ smooth_copy()

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

smooth y values and copy back to the input vectors; note: in the case of sparse vectors, smoothing may fill in samples not present in the original data, so make sure to check the size of the output vectors

Implemented in pwiz::analysis::SavitzkyGolaySmoother< T >, and pwiz::analysis::WhittakerSmoother.


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