double CoordinateType
Coordinate type.
Definition: DPosition.h:33
void clear()
Set all dimensions to zero.
Definition: DPosition.h:339
Maintain an average position by summing up positions with weights.
Definition: AveragePosition.h:31
AveragePosition()
Default constructor.
Definition: AveragePosition.h:49
PositionType const & getPosition() const
Returns the current average position.
Definition: AveragePosition.h:65
CoordinateType weight_sum_
Definition: AveragePosition.h:110
PositionType::CoordinateType CoordinateType
Weight type (for weighted average - a scalar type)
Definition: AveragePosition.h:44
PositionType position_
Definition: AveragePosition.h:108
AveragePosition(AveragePosition const &rhs)
Copy constructor.
Definition: AveragePosition.h:57
void add(PositionType position, CoordinateType const weight=1)
Add a position.
Definition: AveragePosition.h:86
@ DIMENSION
Definition: AveragePosition.h:37
DPosition< DIMENSION > PositionType
Position type (a D-dimensional position)
Definition: AveragePosition.h:41
CoordinateType const & getWeight() const
Returns the total weight.
Definition: AveragePosition.h:71
void clear()
Reset everything. (Note that update() will cause a division by zero after that.)
Definition: AveragePosition.h:77
PositionType position_weighted_sum_
Definition: AveragePosition.h:109
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22