OpenMS
TargetedSpectraExtractor::BinnedSpectrumComparator Class Reference

#include <OpenMS/ANALYSIS/OPENSWATH/TargetedSpectraExtractor.h>

Inheritance diagram for TargetedSpectraExtractor::BinnedSpectrumComparator:
[legend]
Collaboration diagram for TargetedSpectraExtractor::BinnedSpectrumComparator:
[legend]

Public Member Functions

 ~BinnedSpectrumComparator () override=default
 
void generateScores (const MSSpectrum &spec, std::vector< std::pair< Size, double >> &scores, double min_score) const override
 
void init (const std::vector< MSSpectrum > &library, const std::map< String, DataValue > &options) override
 
- Public Member Functions inherited from TargetedSpectraExtractor::Comparator
virtual ~Comparator ()=default
 
const std::vector< MSSpectrum > & getLibrary () const
 

Private Attributes

BinnedSpectralContrastAngle cmp_bs_
 
std::vector< BinnedSpectrumbs_library_
 
double bin_size_ = 0.02
 
UInt peak_spread_ = 0
 
double bin_offset_ = 0.0
 

Additional Inherited Members

- Protected Attributes inherited from TargetedSpectraExtractor::Comparator
std::vector< MSSpectrumlibrary_
 

Constructor & Destructor Documentation

◆ ~BinnedSpectrumComparator()

~BinnedSpectrumComparator ( )
overridedefault

Member Function Documentation

◆ generateScores()

void generateScores ( const MSSpectrum spec,
std::vector< std::pair< Size, double >> &  scores,
double  min_score 
) const
inlineoverridevirtual

◆ init()

void init ( const std::vector< MSSpectrum > &  library,
const std::map< String, DataValue > &  options 
)
overridevirtual

Member Data Documentation

◆ bin_offset_

double bin_offset_ = 0.0
private

◆ bin_size_

double bin_size_ = 0.02
private

◆ bs_library_

std::vector<BinnedSpectrum> bs_library_
private

◆ cmp_bs_

BinnedSpectralContrastAngle cmp_bs_
private

◆ peak_spread_

UInt peak_spread_ = 0
private