Math functions. More...
#include "Robots/LoBot/util/LoMath.H"
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) |
Math functions.
Definition in file LoMath.C.