iRoCS Toolbox  1.1.0
Namespaces | Functions
Random.hh File Reference
#include <config.hh>
#include <blitz/array.h>
#include "Random.icc"
Include dependency graph for Random.hh:

Go to the source code of this file.

Namespaces

 atb
 

Functions

template<int Dim>
blitz::TinyVector< double, Dim > atb::drawRandomVector (const blitz::TinyVector< double, Dim > &maxValue)
 Draw random vector from a uniform distribution with given upper bound (lower bound is zero) More...
 
template<int Dim>
blitz::TinyVector< double, Dim > atb::drawRandomVector (const blitz::TinyVector< double, Dim > &mean, const blitz::TinyMatrix< double, Dim, Dim > &cov)
 Draw a random vector from a gaussian random variable with given mean and covariance matrix. More...
 
double atb::gaussRandomNumber (const double mean, const double stddev)
 Compute a normally distributed random variable, with given mean and standard deviation. More...