|
OpenMS
2.6.0
|
Go to the documentation of this file.
41 #include <OpenMS/OpenMSConfig.h>
95 QualityType getOverallQuality()
const;
99 void setOverallQuality(QualityType q);
102 QualityType getQuality(
Size index)
const;
104 void setQuality(
Size index, QualityType q);
113 const std::vector<ConvexHull2D>& getConvexHulls()
const;
116 std::vector<ConvexHull2D>& getConvexHulls();
118 void setConvexHulls(
const std::vector<ConvexHull2D>& hulls);
128 bool encloses(
double rt,
double mz)
const;
141 const std::vector<Feature>& getSubordinates()
const;
144 std::vector<Feature>& getSubordinates();
147 void setSubordinates(
const std::vector<Feature>& rhs);
161 template <
typename Type>
164 Size assignments = 0;
165 assignments += ((*this).*member_function)();
166 for (std::vector<Feature>::iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
168 assignments += iter->applyMemberFunction(member_function);
174 template <
typename Type>
177 Size assignments = 0;
178 assignments += ((*this).*member_function)();
179 for (std::vector<Feature>::const_iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
181 assignments += iter->applyMemberFunction(member_function);
189 QualityType qualities_[2];
QualityLess OverallQualityLess
Compare by quality.
Definition: Feature.h:107
bool convex_hulls_modified_
Flag that indicates if the overall convex hull needs to be recomputed (i.e. mass trace convex hulls w...
Definition: Feature.h:195
A basic LC-MS feature.
Definition: BaseFeature.h:56
std::vector< Feature > subordinates_
subordinate features (e.g. features that represent alternative explanations, usually with lower quali...
Definition: Feature.h:201
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: Feature.h:175
std::vector< ConvexHull2D > convex_hulls_
Array of convex hulls (one for each mass trace)
Definition: Feature.h:192
A 2-dimensional hull representation in [counter]clockwise direction - depending on axis labelling.
Definition: ConvexHull2D.h:72
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
ConvexHull2D convex_hull_
Overall convex hull of the feature.
Definition: Feature.h:198
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
An LC-MS feature.
Definition: Feature.h:70
Compare by quality.
Definition: BaseFeature.h:118
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the feature (including subordinates). The returned values are ac...
Definition: Feature.h:162