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

Constructor & Destructor Documentation

◆ FilterRoundY() [1/2]

FilterRoundY::FilterRoundY ( )

Definition at line 220 of file filterpass.cpp.

221 {
222 }

◆ FilterRoundY() [2/2]

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

◆ ~FilterRoundY()

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

Definition at line 172 of file filterpass.h.

182 : public FilterInterface

Member Function Documentation

◆ filter()

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

Implements pappso::FilterInterface.

Definition at line 234 of file filterpass.cpp.

235 {
236  for(auto &&dataPoint : data_points)
237  {
238  dataPoint.y = std::round(dataPoint.y);
239  }
240  return data_points;
241 }

◆ operator=()

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

Definition at line 228 of file filterpass.cpp.

229 {
230  return *this;
231 }

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