|
OpenMS
2.6.0
|
Go to the documentation of this file.
42 #include <OpenMS/config.h>
104 mass(local_mass), abundance(local_abundance)
109 #pragma clang diagnostic push
110 #pragma clang diagnostic ignored "-Wfloat-equal"
112 #pragma clang diagnostic pop
160 nominal_mass_(nominalMass)
167 peaks_.push_back(peaks_container::value_type(mass, 1.0));
174 nominal_mass_(nominalMass)
179 peaks_(distribution.peaks_),
180 nominal_mass_(distribution.nominal_mass_)
255 return peaks_[i].mass + nominal_mass_ + i;
266 return peaks_[i].abundance;
274 mass_type getAverageMass()
const;
290 this->nominal_mass_ = nominalMass;
298 masses_container getMasses()
const;
305 abundances_container getAbundances()
const;
319 bool empty()
const {
return peaks_.empty(); }
329 void setMinimumSize_();
338 OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
Peak(mass_type local_mass=0.0, abundance_type local_abundance=0.0)
Definition: IMSIsotopeDistribution.h:103
Structure that represents an isotope peak - pair of mass and abundance.
Definition: IMSIsotopeDistribution.h:101
Peak peak_type
Type of isotope peak.
Definition: IMSIsotopeDistribution.h:120
static abundance_type ABUNDANCES_SUM_ERROR
Error to be allowed for isotope distribution.
Definition: IMSIsotopeDistribution.h:153
nominal_mass_type getNominalMass() const
Definition: IMSIsotopeDistribution.h:281
IMSIsotopeDistribution(const IMSIsotopeDistribution &distribution)
Copy constructor.
Definition: IMSIsotopeDistribution.h:178
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
abundance_type abundance
Definition: IMSIsotopeDistribution.h:116
mass_type getMass(size_type i) const
Definition: IMSIsotopeDistribution.h:253
~IMSIsotopeDistribution()
Destructor.
Definition: IMSIsotopeDistribution.h:184
bool operator==(const Peak &peak) const
Definition: IMSIsotopeDistribution.h:107
peaks_container::size_type size_type
Type of peaks container's size.
Definition: IMSIsotopeDistribution.h:132
IMSIsotopeDistribution(const peaks_container &peaks, nominal_mass_type nominalMass=0)
Constructor with isotopes and nominal mass.
Definition: IMSIsotopeDistribution.h:171
std::vector< abundance_type > abundances_container
Type of container with isotope abundances.
Definition: IMSIsotopeDistribution.h:144
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
peaks_container peaks_
Container for isotopes.
Definition: IMSIsotopeDistribution.h:323
masses_container::const_iterator const_masses_iterator
Type of const iterator over container with isotope masses.
Definition: IMSIsotopeDistribution.h:141
double mass_type
Type of isotope mass.
Definition: IMSIsotopeDistribution.h:92
size_type size() const
Definition: IMSIsotopeDistribution.h:193
abundance_type getAbundance(size_type i) const
Definition: IMSIsotopeDistribution.h:264
masses_container::iterator masses_iterator
Type of iterator over container with isotope masses.
Definition: IMSIsotopeDistribution.h:138
void setNominalMass(nominal_mass_type nominalMass)
Definition: IMSIsotopeDistribution.h:288
abundances_container::iterator abundances_iterator
Type of iterator over container with isotope abundances.
Definition: IMSIsotopeDistribution.h:147
peaks_container::iterator peaks_iterator
Type of iterator over container with peaks.
Definition: IMSIsotopeDistribution.h:126
IMSIsotopeDistribution(mass_type mass)
Constructor with single isotope.
Definition: IMSIsotopeDistribution.h:164
static size_type SIZE
Length of isotope distribution.
Definition: IMSIsotopeDistribution.h:156
bool empty() const
Definition: IMSIsotopeDistribution.h:319
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
abundances_container::const_iterator const_abundances_iterator
Type of const iterator over container with isotope abundances.
Definition: IMSIsotopeDistribution.h:150
double abundance_type
Type of isotope abundance.
Definition: IMSIsotopeDistribution.h:95
IMSIsotopeDistribution(nominal_mass_type nominalMass=0)
Constructor with nominal mass.
Definition: IMSIsotopeDistribution.h:159
peaks_container::const_iterator const_peaks_iterator
Type of const iterator over container with peaks.
Definition: IMSIsotopeDistribution.h:129
std::ostream & operator<<(std::ostream &os, const IMSAlphabet &alphabet)
unsigned int nominal_mass_type
Type of isotope nominal mass.
Definition: IMSIsotopeDistribution.h:98
std::vector< peak_type > peaks_container
Type of container to store peaks.
Definition: IMSIsotopeDistribution.h:123
nominal_mass_type nominal_mass_
Nominal mass of distribution.
Definition: IMSIsotopeDistribution.h:326
OPENSWATHALGO_DLLAPI void normalize(const std::vector< double > &intensities, double normalization_factor, std::vector< double > &normalized_intensities)
Normalize intensities in vector by normalization_factor.
std::vector< mass_type > masses_container
Type of container with isotope masses.
Definition: IMSIsotopeDistribution.h:135
Represents a distribution of isotopes restricted to the first K elements.
Definition: IMSIsotopeDistribution.h:87
mass_type mass
Definition: IMSIsotopeDistribution.h:115