libpappsomspp
Library for mass spectrometry
pappso::FilterMorphoMean Class Reference

mean filter apply mean of y values inside the window : this results in a kind of smoothing More...

#include <filtermorpho.h>

Inheritance diagram for pappso::FilterMorphoMean:
pappso::FilterMorphoWindowBase pappso::FilterInterface

Public Member Functions

 FilterMorphoMean (std::size_t half_window_size)
 
 FilterMorphoMean (const FilterMorphoMean &other)
 
virtual ~FilterMorphoMean ()
 
FilterMorphoMeanoperator= (const FilterMorphoMean &other)
 
double getWindowValue (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end) const override
 
std::size_t getMeanHalfEdgeWindows () const
 
- Public Member Functions inherited from pappso::FilterMorphoWindowBase
 FilterMorphoWindowBase (std::size_t half_window_size)
 
 FilterMorphoWindowBase (const FilterMorphoWindowBase &other)
 
virtual ~FilterMorphoWindowBase ()
 
FilterMorphoWindowBaseoperator= (const FilterMorphoWindowBase &other)
 
virtual Tracefilter (Trace &data_points) const override
 
virtual std::size_t getHalfWindowSize () const
 
- Public Member Functions inherited from pappso::FilterInterface
virtual ~FilterInterface ()
 

Additional Inherited Members

- Protected Attributes inherited from pappso::FilterMorphoWindowBase
std::size_t m_halfWindowSize = 0
 

Detailed Description

mean filter apply mean of y values inside the window : this results in a kind of smoothing

Definition at line 209 of file filtermorpho.h.

Constructor & Destructor Documentation

◆ FilterMorphoMean() [1/2]

FilterMorphoMean::FilterMorphoMean ( std::size_t  half_window_size)

Definition at line 414 of file filtermorpho.cpp.

415  : FilterMorphoWindowBase(half_window_size)
416 {
417 }
FilterMorphoWindowBase(std::size_t half_window_size)

◆ FilterMorphoMean() [2/2]

FilterMorphoMean::FilterMorphoMean ( const FilterMorphoMean other)

Definition at line 418 of file filtermorpho.cpp.

420 {
421 }

◆ ~FilterMorphoMean()

virtual pappso::FilterMorphoMean::~FilterMorphoMean ( )
inlinevirtual

Definition at line 215 of file filtermorpho.h.

215 {};

Member Function Documentation

◆ getMeanHalfEdgeWindows()

std::size_t FilterMorphoMean::getMeanHalfEdgeWindows ( ) const

◆ getWindowValue()

double FilterMorphoMean::getWindowValue ( std::vector< DataPoint >::const_iterator  begin,
std::vector< DataPoint >::const_iterator  end 
) const
overridevirtual

Implements pappso::FilterMorphoWindowBase.

Definition at line 438 of file filtermorpho.cpp.

441 {
442  return meanYTrace(begin, end);
443 }
double meanYTrace(std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end)
calculate the mean of y value of a trace
Definition: trace.cpp:253

References pappso::meanYTrace().

◆ operator=()

FilterMorphoMean & FilterMorphoMean::operator= ( const FilterMorphoMean other)

Definition at line 424 of file filtermorpho.cpp.

425 {
427 
428  return *this;
429 }

References pappso::FilterMorphoWindowBase::m_halfWindowSize.


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