Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Angle.H File Reference


Detailed Description

A simple class to embody an angular value

Definition in file Angle.H.

#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.


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.

References lobot::cos(), i, lobot::sin(), x, and y.

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.

References lobot::cos(), i, lobot::sin(), x, and y.

Referenced by averageBeoSubSensorValue().


Generated on Sun Nov 22 13:45:08 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4