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

apply std::round (round to nearest integer) to all Y values More...

#include <filterpass.h>

Inheritance diagram for pappso::FilterRoundY:
pappso::FilterInterface

Public Member Functions

 FilterRoundY ()
 
 FilterRoundY (const FilterRoundY &other)
 
virtual ~FilterRoundY ()
 
FilterRoundYoperator= (const FilterRoundY &other)
 
Tracefilter (Trace &data_points) const override
 
- Public Member Functions inherited from pappso::FilterInterface
virtual ~FilterInterface ()
 

Detailed Description

apply std::round (round to nearest integer) to all Y values

Definition at line 177 of file filterpass.h.

Constructor & Destructor Documentation

◆ FilterRoundY() [1/2]

FilterRoundY::FilterRoundY ( )

Definition at line 329 of file filterpass.cpp.

330{
331}

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

◆ FilterRoundY() [2/2]

FilterRoundY::FilterRoundY ( const FilterRoundY & other)

Definition at line 332 of file filterpass.cpp.

333{
334}

References FilterRoundY().

◆ ~FilterRoundY()

virtual pappso::FilterRoundY::~FilterRoundY ( )
inlinevirtual

Definition at line 183 of file filterpass.h.

183{};

Member Function Documentation

◆ filter()

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

Implements pappso::FilterInterface.

Definition at line 343 of file filterpass.cpp.

344{
345 for(auto &&dataPoint : data_points)
346 {
347 dataPoint.y = std::round(dataPoint.y);
348 }
349 return data_points;
350}

◆ operator=()

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

Definition at line 337 of file filterpass.cpp.

338{
339 return *this;
340}

References FilterRoundY().


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