libpappsomspp
Library for mass spectrometry
pappso::FilterMorphoMax Class Reference

transform the trace into its maximum over a window More...

#include <filtermorpho.h>

Inheritance diagram for pappso::FilterMorphoMax:
pappso::FilterMorphoWindowBase pappso::FilterInterface

Public Member Functions

 FilterMorphoMax (std::size_t half_window_size)
 
 FilterMorphoMax (const FilterMorphoMax &other)
 
virtual ~FilterMorphoMax ()
 
FilterMorphoMaxoperator= (const FilterMorphoMax &other)
 
double getWindowValue (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end) const override
 
std::size_t getMaxHalfEdgeWindows () 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

transform the trace into its maximum over a window

Definition at line 80 of file filtermorpho.h.

Constructor & Destructor Documentation

◆ FilterMorphoMax() [1/2]

FilterMorphoMax::FilterMorphoMax ( std::size_t  half_window_size)

Definition at line 144 of file filtermorpho.cpp.

145  : FilterMorphoWindowBase(half_window_size)
146 {
147 }
FilterMorphoWindowBase(std::size_t half_window_size)

◆ FilterMorphoMax() [2/2]

FilterMorphoMax::FilterMorphoMax ( const FilterMorphoMax other)

Definition at line 148 of file filtermorpho.cpp.

150 {
151 }

◆ ~FilterMorphoMax()

virtual pappso::FilterMorphoMax::~FilterMorphoMax ( )
inlinevirtual

Definition at line 86 of file filtermorpho.h.

86 {};

Member Function Documentation

◆ getMaxHalfEdgeWindows()

std::size_t FilterMorphoMax::getMaxHalfEdgeWindows ( ) const

Definition at line 172 of file filtermorpho.cpp.

173 {
174  return m_halfWindowSize;
175 }

References pappso::FilterMorphoWindowBase::m_halfWindowSize.

◆ getWindowValue()

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

Implements pappso::FilterMorphoWindowBase.

Definition at line 162 of file filtermorpho.cpp.

165 {
166 
167  // qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__;
168  return maxYDataPoint(begin, end)->y;
169 }
std::vector< DataPoint >::const_iterator maxYDataPoint(std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end)
Definition: trace.cpp:180

References pappso::maxYDataPoint().

◆ operator=()

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

Definition at line 154 of file filtermorpho.cpp.

155 {
157 
158  return *this;
159 }

References pappso::FilterMorphoWindowBase::m_halfWindowSize.


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