core/vnl/vnl_sample.h File Reference


Detailed Description

easy ways to sample from various probability distributions

Definition in file vnl_sample.h.

Go to the source code of this file.


Functions

void vnl_sample_reseed ()
 re-seed the random number generator.
void vnl_sample_reseed (int seed)
 re-seed the random number generator given a seed.
double vnl_sample_uniform (double a, double b)
 uniform on [a, b).
void vnl_sample_normal_2 (double *x, double *y)
 two independent samples from a standard normal distribution.
double vnl_sample_normal (double mean, double sigma)
 Normal distribution with given mean and standard deviation.
template<class I>
void vnl_sample_uniform (I begin, I end, double a, double b)
 handy function to fill a range of values.
template<class I>
void vnl_sample_normal (I begin, I end, double mean, double sigma)
 handy function to fill a range of values.
template<class I, class T>
void vnl_sample_uniform (I begin, I end, double a, double b, T)
 handy function to fill a range of values.
template<class I, class T>
void vnl_sample_normal (I begin, I end, double mean, double sigma, T)
 handy function to fill a range of values.

Function Documentation

template<class I, class T>
void vnl_sample_normal ( begin,
end,
double  mean,
double  sigma,
 
) [inline]

handy function to fill a range of values.

Definition at line 57 of file vnl_sample.h.

template<class I>
void vnl_sample_normal ( begin,
end,
double  mean,
double  sigma 
) [inline]

handy function to fill a range of values.

Definition at line 41 of file vnl_sample.h.

double vnl_sample_normal ( double  mean,
double  sigma 
)

Normal distribution with given mean and standard deviation.

Definition at line 70 of file vnl_sample.cxx.

void vnl_sample_normal_2 ( double *  x,
double *  y 
)

two independent samples from a standard normal distribution.

Definition at line 59 of file vnl_sample.cxx.

void vnl_sample_reseed ( int  seed  ) 

re-seed the random number generator given a seed.

Definition at line 38 of file vnl_sample.cxx.

void vnl_sample_reseed (  ) 

re-seed the random number generator.

Definition at line 29 of file vnl_sample.cxx.

template<class I, class T>
void vnl_sample_uniform ( begin,
end,
double  a,
double  b,
 
) [inline]

handy function to fill a range of values.

Definition at line 49 of file vnl_sample.h.

template<class I>
void vnl_sample_uniform ( begin,
end,
double  a,
double  b 
) [inline]

handy function to fill a range of values.

Definition at line 33 of file vnl_sample.h.

double vnl_sample_uniform ( double  a,
double  b 
)

uniform on [a, b).

Definition at line 48 of file vnl_sample.cxx.


Generated on Sat Nov 22 05:06:24 2008 for core/vnl by  doxygen 1.5.1