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 201 of file filtermorpho.h.

Constructor & Destructor Documentation

◆ FilterMorphoMean() [1/2]

FilterMorphoMean::FilterMorphoMean ( std::size_t  half_window_size)

Definition at line 391 of file filtermorpho.cpp.

392  : FilterMorphoWindowBase(half_window_size)
393 {
394 }
FilterMorphoWindowBase(std::size_t half_window_size)

◆ FilterMorphoMean() [2/2]

FilterMorphoMean::FilterMorphoMean ( const FilterMorphoMean other)

Definition at line 395 of file filtermorpho.cpp.

397 {
398 }

◆ ~FilterMorphoMean()

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

Definition at line 207 of file filtermorpho.h.

207 {};

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 415 of file filtermorpho.cpp.

418 {
419  return meanYTrace(begin, end);
420 }
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:212

References pappso::meanYTrace().

◆ operator=()

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

Definition at line 401 of file filtermorpho.cpp.

402 {
404 
405  return *this;
406 }

References pappso::FilterMorphoWindowBase::m_halfWindowSize.


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