libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::FilterLowPass Class Reference

remove datapoints higher than a given Y value (intensity) More...

#include <filterpass.h>

Inheritance diagram for pappso::FilterLowPass:
pappso::FilterInterface

Public Member Functions

 FilterLowPass (double pass_y)
 
 FilterLowPass (const FilterLowPass &other)
 
virtual ~FilterLowPass ()
 
FilterLowPassoperator= (const FilterLowPass &other)
 
Tracefilter (Trace &data_points) const override
 
- Public Member Functions inherited from pappso::FilterInterface
virtual ~FilterInterface ()
 

Private Attributes

double m_passY = 0
 

Detailed Description

remove datapoints higher than a given Y value (intensity)

Definition at line 40 of file filterpass.h.

Constructor & Destructor Documentation

◆ FilterLowPass() [1/2]

FilterLowPass::FilterLowPass ( double pass_y)

Definition at line 41 of file filterpass.cpp.

41 : m_passY(pass_y)
42{
43}

References m_passY.

Referenced by FilterLowPass(), and operator=().

◆ FilterLowPass() [2/2]

FilterLowPass::FilterLowPass ( const FilterLowPass & other)

Definition at line 44 of file filterpass.cpp.

44 : m_passY(other.m_passY)
45{
46}

References FilterLowPass(), and m_passY.

◆ ~FilterLowPass()

virtual pappso::FilterLowPass::~FilterLowPass ( )
inlinevirtual

Definition at line 48 of file filterpass.h.

48{};

Member Function Documentation

◆ filter()

Trace & FilterLowPass::filter ( Trace & data_points) const
overridevirtual

Implements pappso::FilterInterface.

Definition at line 58 of file filterpass.cpp.

59{
60 Trace new_data_points;
61 for(auto &&data_point : data_points)
62 {
63 if(data_point.y < m_passY)
64 {
65 new_data_points.push_back(data_point);
66 }
67 }
68 data_points = std::move(new_data_points);
69 return data_points;
70}

References m_passY.

◆ operator=()

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

Definition at line 49 of file filterpass.cpp.

50{
51 m_passY = other.m_passY;
52
53 return *this;
54}

References FilterLowPass(), and m_passY.

Member Data Documentation

◆ m_passY

double pappso::FilterLowPass::m_passY = 0
private

Definition at line 43 of file filterpass.h.

Referenced by FilterLowPass(), FilterLowPass(), filter(), and operator=().


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