IT++ Logo Newcom Logo

itpp::Exponential_RNG Class Reference
[Random Number Generation]

Exponential distribution. More...

#include <itpp/base/random.h>

List of all members.

Public Member Functions

 Exponential_RNG (double lambda=1.0)
 constructor. Set lambda.
void setup (double lambda)
 Set lambda.
double get_setup () const
 get lambda
double operator() ()
 Get one sample.
vec operator() (int n)
 Get a sample vector.
mat operator() (int h, int w)
 Get a sample matrix.


Detailed Description

Exponential distribution.

Definition at line 376 of file random.h.


Constructor & Destructor Documentation

itpp::Exponential_RNG::Exponential_RNG ( double  lambda = 1.0  ) 

constructor. Set lambda.

Definition at line 224 of file random.cpp.

References setup().


Member Function Documentation

void itpp::Exponential_RNG::setup ( double  lambda  )  [inline]

Set lambda.

Definition at line 381 of file random.h.

Referenced by Exponential_RNG(), itpp::randexp(), and itpp::Poisson_Packet_Generator::set_parameters().

double itpp::Exponential_RNG::get_setup (  )  const

get lambda

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

Get one sample.

Definition at line 385 of file random.h.

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

Get a sample vector.

Definition at line 229 of file random.cpp.

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

Get a sample matrix.

Definition at line 239 of file random.cpp.


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

Generated on Wed Apr 18 11:23:40 2007 for IT++ by Doxygen 1.5.2