ConstantNumber Class Reference

A "distribution" which always returns a specified value. More...

#include <RandomDistribution.h>

Inheritance diagram for ConstantNumber:

Inheritance graph
[legend]
Collaboration diagram for ConstantNumber:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConstantNumber (double c=1)
virtual ~ConstantNumber ()
virtual double get (RandomEngine &eng)
virtual RandomDistributionclone (void) const


Detailed Description

A "distribution" which always returns a specified value.

Definition at line 82 of file RandomDistribution.h.


Constructor & Destructor Documentation

ConstantNumber::ConstantNumber ( double  c = 1  )  [inline]

Definition at line 86 of file RandomDistribution.h.

Referenced by clone().

virtual ConstantNumber::~ConstantNumber (  )  [inline, virtual]

Definition at line 87 of file RandomDistribution.h.


Member Function Documentation

virtual double ConstantNumber::get ( RandomEngine eng  )  [inline, virtual]

Reimplemented from RandomDistribution.

Definition at line 89 of file RandomDistribution.h.

virtual RandomDistribution* ConstantNumber::clone ( void   )  const [inline, virtual]

Implements RandomDistribution.

Definition at line 94 of file RandomDistribution.h.

References ConstantNumber().

Here is the call graph for this function:


The documentation for this class was generated from the following file:

Generated on Wed Jul 9 16:34:47 2008 for PCSIM by  doxygen 1.5.5