Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions

PeakTypeEstimator Class Reference
[Format]

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

#include <OpenMS/FORMAT/PeakTypeEstimator.h>

List of all members.

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.

Detailed Description

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


Member Function Documentation

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::UNKOWN is returned

References OpenMS::Math::mean().


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:54 using doxygen 1.7.1