Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | List of all members
PeakTypeEstimator Class Reference

Estimates if the data of a spectrum is raw data or peak data. More...

#include <OpenMS/FORMAT/PeakTypeEstimator.h>

Public Member Functions

template<typename PeakConstIterator >
SpectrumSettings::SpectrumType estimateType (const PeakConstIterator &begin, const PeakConstIterator &end) const
 Estimates the peak type of the peaks in the iterator range based on the variance of inter-peak distances. More...
 

Detailed Description

Estimates if the data of a spectrum is raw data or peak data.

Member Function Documentation

◆ estimateType()

SpectrumSettings::SpectrumType estimateType ( const PeakConstIterator &  begin,
const PeakConstIterator &  end 
) const
inline

Estimates the peak type of the peaks in the iterator range based on the variance of inter-peak distances.

Note
if there are fewer than 5 peaks in the iterator range SpectrumSettings::UNKNOWN is returned

References OpenMS::Math::mean(), SpectrumSettings::PEAKS, SpectrumSettings::RAWDATA, SpectrumSettings::UNKNOWN, and OpenMS::Math::variance().

Referenced by SpectraMerger::average().


OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:11 using doxygen 1.8.13