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

Poisson1Fun Class Reference

#include <RandomFuns.h>

Inheritance diagram for Poisson1Fun:

Inheritance graph
[legend]
Collaboration diagram for Poisson1Fun:

Collaboration graph
[legend]
List of all members.

Detailed Description

A IntFun that returns a Poisson-distributed value from a uniform random number.

Definition at line 128 of file RandomFuns.h.

Public Member Functions

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

 Poisson1Fun (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 ~Poisson1Fun ()
 Protected destructor ensures creation on the heap.


Protected Attributes

const FloatFunrnd
 The random function.

double mean


Constructor & Destructor Documentation

Poisson1Fun::Poisson1Fun 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 135 of file RandomFuns.C.

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

Constructor from a C++ string.

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

Definition at line 137 of file RandomFuns.h.

References mean, and rnd.


Member Data Documentation

double Poisson1Fun::mean [protected]
 

The mean value

Definition at line 154 of file RandomFuns.h.

Referenced by operator()(), and Poisson1Fun().


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