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