Angle.H File Reference

#include <cmath>
#include <deque>
Include dependency graph for Angle.H:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

A simple class to embody an angular value

Definition in file Angle.H.


Function Documentation

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.

Definition at line 292 of file Angle.H.

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().

Generated on Sun May 8 08:19:16 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3