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
 

Detailed Description

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

Definition at line 198 of file filterpass.h.

Constructor & Destructor Documentation

◆ FilterRoundY() [1/2]

FilterRoundY::FilterRoundY ( )

Definition at line 329 of file filterpass.cpp.

330 {
331 }

◆ FilterRoundY() [2/2]

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

◆ ~FilterRoundY()

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

Definition at line 204 of file filterpass.h.

214 : public FilterInterface

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 }

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