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