37 #include <OpenMS/config.h>
94 std::vector<std::pair<Size,double>>& scores,
99 const std::vector<MSSpectrum>& library,
100 const std::map<String,DataValue>& options
118 std::vector<std::pair<Size,double>>& scores,
123 const BinnedSpectrum in_bs(spec, bin_size_,
false, peak_spread_, bin_offset_);
124 for (
Size i = 0; i < bs_library_.size(); ++i)
126 const double cmp_score = cmp_bs_(in_bs, bs_library_[i]);
127 if (cmp_score >= min_score)
129 scores.emplace_back(i, cmp_score);
134 void init(
const std::vector<MSSpectrum>& library,
const std::map<String,DataValue>& options)
override;
139 double bin_size_ = 1.0;
141 double bin_offset_ = 0.4;
163 const std::vector<MSSpectrum>& spectra,
165 std::vector<MSSpectrum>& annotated_spectra,
167 bool compute_features =
true
185 const std::vector<MSSpectrum>& spectra,
187 std::vector<MSSpectrum>& annotated_spectra
203 const std::vector<MSSpectrum>& spectra,
206 std::vector<MSSpectrum>& annotated_spectra)
const;
256 const std::vector<MSSpectrum>& annotated_spectra,
257 const std::vector<MSSpectrum>& picked_spectra,
259 std::vector<MSSpectrum>& scored_spectra,
260 bool compute_features =
true
277 const std::vector<MSSpectrum>& annotated_spectra,
278 const std::vector<MSSpectrum>& picked_spectra,
279 std::vector<MSSpectrum>& scored_spectra
295 const std::vector<MSSpectrum>& scored_spectra,
297 std::vector<MSSpectrum>& selected_spectra,
299 bool compute_features =
true
310 const std::vector<MSSpectrum>& scored_spectra,
311 std::vector<MSSpectrum>& selected_spectra
333 std::vector<MSSpectrum>& extracted_spectra,
335 bool compute_features =
true
354 std::vector<MSSpectrum>& extracted_spectra
368 std::vector<Match>& matches
394 const std::vector<MSSpectrum>& spectra,
421 const std::vector<MSSpectrum>& spectra,
Compare functor scoring the spectral contrast angle for similarity measurement.
Definition: BinnedSpectralContrastAngle.h:59
This is a binned representation of a PeakSpectrum.
Definition: BinnedSpectrum.h:81
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
A container for features.
Definition: FeatureMap.h:106
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:73
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
Management and storage of parameters / INI files.
Definition: Param.h:70
A more convenient string class.
Definition: String.h:60
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:65
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47