| OpenMS 2.5.0

Public Member Functions | Private Attributes | List of all members
TargetedSpectraExtractor::BinnedSpectrumComparator Class Reference

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

Inheritance diagram for TargetedSpectraExtractor::BinnedSpectrumComparator:

## 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< BinnedSpectrum > | bs_library_
double | bin_size_ = 1.0
UInt | peak_spread_ = 0
double | bin_offset_ = 0.4

## Additional Inherited Members

Protected Attributes inherited from TargetedSpectraExtractor::Comparator
std::vector< MSSpectrum > | library_

## Constructor & Destructor Documentation

## ◆ ~BinnedSpectrumComparator()

~BinnedSpectrumComparator | ( |  | ) |

override default

## Member Function Documentation

## ◆ generateScores()

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

inline override virtual

Implements TargetedSpectraExtractor::Comparator.

## ◆ init()

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

inline override virtual

Implements TargetedSpectraExtractor::Comparator.

References OPENMS_LOG_INFO.

## Member Data Documentation

## ◆ bin_offset_

double bin_offset_ = 0.4

private

## ◆ bin_size_

double bin_size_ = 1.0

private

## ◆ bs_library_

std::vector<BinnedSpectrum> bs_library_

private

## ◆ cmp_bs_

BinnedSpectralContrastAngle cmp_bs_

private

## ◆ peak_spread_

UInt peak_spread_ = 0

private