|
OpenMS
2.5.0
|
void clear()
Set all dimensions to zero.
Definition: DPosition.h:354
DPosition< DIMENSION > PositionType
Position type (a D-dimensional position)
Definition: AveragePosition.h:67
PositionType position_
Definition: AveragePosition.h:134
double CoordinateType
Coordinate type.
Definition: DPosition.h:58
void clear()
Reset everything. (Note that update() will cause a division by zero after that.)
Definition: AveragePosition.h:103
AveragePosition()
Default constructor.
Definition: AveragePosition.h:75
const PositionType & getPosition() const
Returns the current average position.
Definition: AveragePosition.h:91
const CoordinateType & getWeight() const
Returns the total weight.
Definition: AveragePosition.h:97
Maintain an average position by summing up positions with weights.
Definition: AveragePosition.h:56
AveragePosition(AveragePosition const &rhs)
Copy constructor.
Definition: AveragePosition.h:83
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Definition: AveragePosition.h:63
PositionType::CoordinateType CoordinateType
Weight type (for weighted average - a scalar type)
Definition: AveragePosition.h:70
CoordinateType weight_sum_
Definition: AveragePosition.h:136
PositionType position_weighted_sum_
Definition: AveragePosition.h:135
void add(PositionType position, CoordinateType const weight=1)
Add a position.
Definition: AveragePosition.h:112
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561