Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

Poisson Class Reference

#include <newran.h>

Inheritance diagram for Poisson:

Inheritance graph
[legend]
Collaboration diagram for Poisson:

Collaboration graph
[legend]

Public Member Functions

char * Name ()
 Poisson (Real)
virtual ~Poisson ()
Real Next ()
ExtReal Mean () const
ExtReal Variance () const

Private Member Functions

void operator= (const Poisson &)

Private Attributes

Randommethod

Constructor & Destructor Documentation

Poisson::Poisson Real   ) 
 

Definition at line 471 of file newran.cpp.

References ErrorNoSpace(), and method.

00472 {
00473    if (mu <= 8.0) method = new Poisson2(mu);
00474    else method = new Poisson1(mu);
00475    if (!method) ErrorNoSpace();
00476 }

virtual Poisson::~Poisson  )  [inline, virtual]
 

Definition at line 312 of file newran.h.

References tron.

00313    { 
00314    #ifdef MONITOR
00315       tron << "destructing Poisson\n";
00316    #endif
00317            delete method; 
00318    }


Member Function Documentation

ExtReal Poisson::Mean  )  const [inline, virtual]
 

Reimplemented from Random.

Definition at line 320 of file newran.h.

00320 { return method->Mean(); }

char * Poisson::Name  )  [virtual]
 

Reimplemented from Random.

Definition at line 915 of file newran.cpp.

00915 { return "Poisson";          }

Real Poisson::Next  )  [inline, virtual]
 

Reimplemented from Random.

Definition at line 319 of file newran.h.

References Real.

00319 { return method->Next(); }

void Poisson::operator= const Poisson  )  [inline, private]
 

Definition at line 306 of file newran.h.

00306 {}      // private so can't access

ExtReal Poisson::Variance  )  const [inline, virtual]
 

Reimplemented from Random.

Definition at line 321 of file newran.h.

00321 { return method->Variance(); }


Field Documentation

Random* Poisson::method [private]
 

Definition at line 307 of file newran.h.

Referenced by Poisson().


The documentation for this class was generated from the following files:
Generated on Fri Dec 5 04:06:31 2003 for Borqueror by doxygen 1.3.3