#include <cmath>
#include <deque>
Go to the source code of this file.
Classes | |
class | Angle |
Embodiment of an angular value. More... | |
Functions | |
Angle | averageVectorAngle (std::deque< Angle >::const_iterator astart, std::deque< Angle >::const_iterator aend) |
Compute the vector average of a bunch of angles. | |
Angle | averageVectorAngle (std::deque< Angle >::const_iterator astart, std::deque< Angle >::const_iterator aend, const double factor) |
Compute the weighted vector average of a bunch of angles. |
A simple class to embody an angular value
Definition in file Angle.H.
Angle averageVectorAngle | ( | std::deque< Angle >::const_iterator | astart, | |
std::deque< Angle >::const_iterator | aend, | |||
const double | factor | |||
) | [inline] |
Compute the weighted vector average of a bunch of angles.
The length of each vector starts with 1.0 and then is multiplied by factor each at each iteration, thus providing an exponential length decay. Each angle is assumed to be associated with a vector of given length length, and the angle of the vector sum of all vectors is resturned.
Angle averageVectorAngle | ( | std::deque< Angle >::const_iterator | astart, | |
std::deque< Angle >::const_iterator | aend | |||
) | [inline] |
Compute the vector average of a bunch of angles.
Each angle is assumed to be associated with a vector of unit length, and the angle of the vector sum of all unit vectors is resturned.
Definition at line 278 of file Angle.H.
Referenced by averageBeoSubSensorValue().