eo Namespace Reference


Classes

class  CMAParams
struct  CMAStateImpl
class  CMAState

Functions

int eig (int N, const lower_triangular_matrix &C, valarray< double > &diag, square_matrix &Q, int niter)
int eig (int N, const lower_triangular_matrix &C, std::valarray< double > &diag, square_matrix &Q, int niter=0)
template<typename T>
random (const T &max)
 Random function.
template<typename T>
random (const T &min, const T &max)
 Random function.
double normal ()
 Normal distribution.

Variables

eoRng rng (time(0))
 The one and only global eoRng object.
eoRng rng (time(0))
 The one and only global eoRng object.
eoRng rng
 The one and only global eoRng object.


Function Documentation

template<typename T>
T eo::random ( const T &  max  )  [inline]

Random function.

Templatized random function, returns a random double in the range [0, max).

Parameters:
max Maximum for distribution
It works with most basic types such as:

Definition at line 504 of file eoRNG.h.

References rng, and eoRng::uniform().

template<typename T>
T eo::random ( const T &  min,
const T &  max 
) [inline]

Random function.

Templatized random function, returns a random double in the range [min, max).

Parameters:
min Minimum for distribution
max Maximum for distribution
See also:
random(const T& max)

Definition at line 517 of file eoRNG.h.

References rng, and eoRng::uniform().


Generated on Thu Apr 19 11:02:35 2007 for EO by  doxygen 1.4.7