#include <bucket1d.hpp>
Definition at line 38 of file bucket1d.hpp.
◆ Bucket1D() [1/2]
ralab::base::resample::Bucket1D::Bucket1D |
( |
std::vector< double > & |
breaks, |
|
|
std::vector< uint32_t > & |
indic |
|
) |
| |
|
inline |
◆ Bucket1D() [2/2]
ralab::base::resample::Bucket1D::Bucket1D |
( |
const Bucket1D & |
rhs | ) |
|
|
inline |
◆ set()
void ralab::base::resample::Bucket1D::set |
( |
const std::vector< double > & |
breaks, |
|
|
const std::vector< uint32_t > & |
indic |
|
) |
| |
|
inlineprivate |
◆ operator=()
◆ operator()() [1/2]
template<typename InputIterator >
void ralab::base::resample::Bucket1D::operator() |
( |
InputIterator |
beg, |
|
|
InputIterator |
end, |
|
|
std::vector< std::pair< std::size_t, std::size_t > > & |
bucketPairs |
|
) |
| |
|
inline |
The result tells you in which bucket which input should end up.
- Parameters
-
beg | Check wich of these masses should be bucketed |
Definition at line 96 of file bucket1d.hpp.
102 std::size_t index(0);
103 std::pair<std::size_t, bool> res;
104 for(;beg !=end; ++beg, ++index)
109 bucketPairs.push_back(std::make_pair(res.first , index ));
◆ operator()() [2/2]
std::pair<std::size_t, bool> ralab::base::resample::Bucket1D::operator() |
( |
double |
dat | ) |
|
|
inline |
the std::size_t indicates to which bucket dat belongs too.
The bool indicates if a new bucket is of interest
Definition at line 119 of file bucket1d.hpp.
122 std::size_t ub = std::distance(
begbreaks_,it2);
128 return std::make_pair(ub,
true);
130 return std::make_pair(ub,
false);
133 return std::make_pair(0,
false);
References begbreaks_, endbreaks_, indicator_, and indicatorptr_.
◆ breaks_
std::vector<double> ralab::base::resample::Bucket1D::breaks_ |
|
private |
◆ indicator_
std::vector<uint32_t> ralab::base::resample::Bucket1D::indicator_ |
|
private |
◆ begbreaks_
double* ralab::base::resample::Bucket1D::begbreaks_ |
|
private |
◆ endbreaks_
double* ralab::base::resample::Bucket1D::endbreaks_ |
|
private |
◆ indicatorptr_
uint32_t* ralab::base::resample::Bucket1D::indicatorptr_ |
|
private |
The documentation for this struct was generated from the following file:
- /build/libpwiz-7iAJBH/libpwiz-3.0.18342/pwiz/utility/findmf/base/resample/bucket1d.hpp
void breaks(double minMass, double maxMass, TMassComparator tmassComp, std::vector< double > &breaks, bool exact=false)
Segment mass range according to Mass Compare functor could be used to histogram a dataset or to compu...
void operator()(InputIterator beg, InputIterator end, std::vector< std::pair< std::size_t, std::size_t > > &bucketPairs)
The result tells you in which bucket which input should end up.