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 180 of file filterpass.h.

Constructor & Destructor Documentation

◆ FilterRoundY() [1/2]

FilterRoundY::FilterRoundY ( )

Definition at line 339 of file filterpass.cpp.

340{
341}

◆ FilterRoundY() [2/2]

FilterRoundY::FilterRoundY ( const FilterRoundY & other)

Definition at line 342 of file filterpass.cpp.

343{
344}

◆ ~FilterRoundY()

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

Definition at line 186 of file filterpass.h.

186{};

Member Function Documentation

◆ filter()

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

Implements pappso::FilterInterface.

Definition at line 353 of file filterpass.cpp.

354{
355 for(auto &&dataPoint : data_points)
356 {
357 dataPoint.y = std::round(dataPoint.y);
358 }
359 return data_points;
360}

◆ operator=()

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

Definition at line 347 of file filterpass.cpp.

348{
349 return *this;
350}

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