LoMath.C File Reference

Math functions. More...

#include "Robots/LoBot/util/LoMath.H"
Include dependency graph for LoMath.C:

Go to the source code of this file.

Functions

int lobot::next_power_of_two (int n)
 Return the next power of two >= given number.
int lobot::round (float t)
 Round a floating-point number to the nearest integer.
float lobot::clamp_angle (float angle)
 Clamp an angle (specified in degrees) to lie in [0, 360].
int lobot::random (int min, int max)
float lobot::randomf (float min, float max)
float lobot::gaussian (float x, float mu, float sigma)
 A function to evaluate the Gaussian.
float lobot::sample_tri (float b)

float lobot::prob_to_log_odds (float p)
float lobot::log_odds_to_prob (float log_odds)

Detailed Description

Math functions.

Definition in file LoMath.C.

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