libpappsomspp
Library for mass spectrometry
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 337 of file filterpass.cpp.

338 {
339 }

◆ FilterRoundY() [2/2]

pappso::FilterRoundY::FilterRoundY ( const FilterRoundY other)

◆ ~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 351 of file filterpass.cpp.

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

◆ operator=()

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

Definition at line 345 of file filterpass.cpp.

346 {
347  return *this;
348 }

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