Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

Poisson2Fun Class Reference

#include <RandomFuns.h>

Inheritance diagram for Poisson2Fun:

Inheritance graph
[legend]
Collaboration diagram for Poisson2Fun:

Collaboration graph
[legend]
List of all members.

Detailed Description

A IntFun that returns a Poisson-distributed value from a uniform random number (gaussian approximation).

Definition at line 161 of file RandomFuns.h.

Public Member Functions

 Poisson2Fun (const FloatFun &rnd_, double mean_, const char *name_=0)
 Constructor from a C style string, serves as default constructor.

 Poisson2Fun (const FloatFun &rnd_, double mean_, const std::string &name_)
 Constructor from a C++ string.

virtual int operator() () const
 Returns a poisson distributed value.

virtual const FillIteratorgetIterator () const
 Returns pointer to iterator, if any.


Protected Member Functions

virtual ~Poisson2Fun ()
 Protected destructor ensures creation on the heap.


Protected Attributes

FloatFungaussrnd


Constructor & Destructor Documentation

Poisson2Fun::Poisson2Fun const FloatFun rnd_,
double  mean_,
const char *  name_ = 0
[explicit]
 

Constructor from a C style string, serves as default constructor.

Parameters:
rnd_  The random function
mean_  The mean value
name_  An optional name

Definition at line 157 of file RandomFuns.C.

Poisson2Fun::Poisson2Fun const FloatFun rnd_,
double  mean_,
const std::string &  name_
[explicit]
 

Constructor from a C++ string.

Parameters:
rnd_  The random function
mean_  The mean value
name_  An optional name

Definition at line 162 of file RandomFuns.C.


Member Data Documentation

FloatFun& Poisson2Fun::gaussrnd [protected]
 

The gaussian random function

Definition at line 182 of file RandomFuns.h.

Referenced by getIterator(), operator()(), and ~Poisson2Fun().


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 12:55:01 2006 for SFH by doxygen 1.3.2