IT++ Logo Newcom Logo

itpp::Laplace_RNG Class Reference
[Random Number Generation]

Laplacian distribution. More...

#include <itpp/base/random.h>

List of all members.

Public Member Functions

 Laplace_RNG (double meanval=0.0, double variance=1.0)
 Constructor. Set mean and variance.
void setup (double meanval, double variance)
 Set mean and variance.
void get_setup (double &meanval, double &variance) const
 Get mean and variance.
double operator() ()
 Get one sample.
vec operator() (int n)
 Get a sample vector.
mat operator() (int h, int w)
 Get a sample matrix.
double sample ()
 Returns a single sample.


Detailed Description

Laplacian distribution.

Definition at line 461 of file random.h.


Constructor & Destructor Documentation

itpp::Laplace_RNG::Laplace_RNG ( double  meanval = 0.0,
double  variance = 1.0 
)

Constructor. Set mean and variance.

Definition at line 265 of file random.cpp.

References setup().


Member Function Documentation

void itpp::Laplace_RNG::setup ( double  meanval,
double  variance 
)

Set mean and variance.

Definition at line 270 of file random.cpp.

Referenced by Laplace_RNG().

void itpp::Laplace_RNG::get_setup ( double &  meanval,
double &  variance 
) const

Get mean and variance.

Definition at line 276 of file random.cpp.

double itpp::Laplace_RNG::operator() (  )  [inline]

Get one sample.

Definition at line 470 of file random.h.

References sample().

vec itpp::Laplace_RNG::operator() ( int  n  ) 

Get a sample vector.

Definition at line 284 of file random.cpp.

References sample().

mat itpp::Laplace_RNG::operator() ( int  h,
int  w 
)

Get a sample matrix.

Definition at line 294 of file random.cpp.

References sample().

double itpp::Laplace_RNG::sample (  )  [inline]

Returns a single sample.

Definition at line 476 of file random.h.

References itpp::log(), itpp::Random_Generator::random_01(), and itpp::sqrt().

Referenced by operator()().


The documentation for this class was generated from the following files:
SourceForge Logo

Generated on Thu Aug 30 02:47:23 2007 for IT++ by Doxygen 1.5.3