OpenMS  2.4.0
Public Member Functions | Private Attributes | List of all members
SplineSpectrum::Navigator Class Reference

iterator class for access of spline packages More...

#include <OpenMS/FILTERING/DATAREDUCTION/SplineSpectrum.h>

Public Member Functions

 Navigator (const std::vector< SplinePackage > *packages, double mzMin, double mzMax)
 constructor of iterator More...
 
 Navigator ()
 constructor (for pyOpenMS) More...
 
 ~Navigator ()
 destructor More...
 
double eval (double mz)
 returns spline interpolated intensity at m/z (fast access since we can start search from lastPackage) More...
 
double getNextMz (double mz)
 returns the next sensible m/z position for scanning through a spectrum (fast access since we can start search from lastPackage) More...
 

Private Attributes

const std::vector< SplinePackage > * packages_
 list of spline packages to be accessed More...
 
size_t last_package_
 index of spline package last accessed More...
 
double mz_min_
 m/z limits of the spectrum More...
 
double mz_max_
 

Detailed Description

iterator class for access of spline packages

Constructor & Destructor Documentation

◆ Navigator() [1/2]

Navigator ( const std::vector< SplinePackage > *  packages,
double  mzMin,
double  mzMax 
)

constructor of iterator

◆ Navigator() [2/2]

Navigator ( )

constructor (for pyOpenMS)

◆ ~Navigator()

~Navigator ( )

destructor

Member Function Documentation

◆ eval()

double eval ( double  mz)

returns spline interpolated intensity at m/z (fast access since we can start search from lastPackage)

Referenced by SpectraMerger::averageProfileSpectra_().

◆ getNextMz()

double getNextMz ( double  mz)

returns the next sensible m/z position for scanning through a spectrum (fast access since we can start search from lastPackage)

Member Data Documentation

◆ last_package_

size_t last_package_
private

index of spline package last accessed

◆ mz_max_

double mz_max_
private

◆ mz_min_

double mz_min_
private

m/z limits of the spectrum

◆ packages_

const std::vector<SplinePackage>* packages_
private

list of spline packages to be accessed