Static Public Member Functions
g2o::tutorial::Rand Class Reference

generate random numbers More...

#include <rand.h>

List of all members.

Static Public Member Functions

static double gauss_rand (double mean, double sigma)
static void seed_rand ()
static void seed_rand (unsigned int seed)
static double uniform_rand (double lowerBndr, double upperBndr)

Detailed Description

generate random numbers

Definition at line 31 of file rand.h.


Member Function Documentation

static double g2o::tutorial::Rand::gauss_rand ( double  mean,
double  sigma 
) [inline, static]

Gaussian random with a mean and standard deviation. Uses the Polar method of Marsaglia.

Definition at line 38 of file rand.h.

static void g2o::tutorial::Rand::seed_rand ( ) [inline, static]

default seed function using the current time in seconds

Definition at line 60 of file rand.h.

static void g2o::tutorial::Rand::seed_rand ( unsigned int  seed) [inline, static]

seed the random number generator

Definition at line 66 of file rand.h.

static double g2o::tutorial::Rand::uniform_rand ( double  lowerBndr,
double  upperBndr 
) [inline, static]

sample a number from a uniform distribution

Definition at line 52 of file rand.h.


The documentation for this class was generated from the following file:


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:31