![]() |
OpenMS
|
Sorted precursor masses (same order as the multimap they are created from) with a bucket index. More...
#include <OpenNuXL/include/NuXLSearchIndex.h>
Public Member Functions | |
| template<class MultiMap > | |
| void | build (const MultiMap &mm) |
| std::pair< size_t, size_t > | range_ (double x) const |
| size_t | lowerBound (double x) const |
| == multimap::lower_bound / upper_bound (as index) | |
| size_t | upperBound (double x) const |
Public Attributes | |
| std::vector< double > | mass |
| std::vector< std::pair< Size, int > > | scan_and_isotope |
| double | lo = 0 |
| std::vector< uint32_t > | bucket |
| bucket[k] = index of the first precursor with mass >= lo + k * BIN | |
Static Public Attributes | |
| static constexpr double | BIN = 0.05 |
Sorted precursor masses (same order as the multimap they are created from) with a bucket index.
|
inline |
|
inline |
== multimap::lower_bound / upper_bound (as index)
References NuXLPrecursorIndex::mass, and NuXLPrecursorIndex::range_().
|
inline |
References NuXLPrecursorIndex::BIN, NuXLPrecursorIndex::bucket, and NuXLPrecursorIndex::lo.
Referenced by NuXLPrecursorIndex::lowerBound(), and NuXLPrecursorIndex::upperBound().
|
inline |
References NuXLPrecursorIndex::mass, and NuXLPrecursorIndex::range_().
|
staticconstexpr |
Referenced by NuXLPrecursorIndex::build(), and NuXLPrecursorIndex::range_().
| std::vector<uint32_t> bucket |
bucket[k] = index of the first precursor with mass >= lo + k * BIN
Referenced by NuXLPrecursorIndex::build(), and NuXLPrecursorIndex::range_().
| double lo = 0 |
Referenced by NuXLPrecursorIndex::build(), and NuXLPrecursorIndex::range_().
| std::vector<double> mass |
Referenced by NuXLPrecursorIndex::build(), NuXLPrecursorIndex::lowerBound(), and NuXLPrecursorIndex::upperBound().
| std::vector<std::pair<Size, int> > scan_and_isotope |
Referenced by NuXLPrecursorIndex::build().