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

Constant Class Reference

#include <newran.h>

Inheritance diagram for Constant:

Inheritance graph
[legend]
Collaboration diagram for Constant:

Collaboration graph
[legend]

Public Member Functions

char * Name ()
 Constant (Real v)
Real Next ()
ExtReal Mean () const
ExtReal Variance () const

Private Member Functions

void operator= (const Constant &)

Private Attributes

Real value

Constructor & Destructor Documentation

Constant::Constant Real  v  )  [inline]
 

Definition at line 87 of file newran.h.

00087 { value=v; }          // set value


Member Function Documentation

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

Reimplemented from Random.

Definition at line 89 of file newran.h.

00089 { return value; }

char * Constant::Name  )  [virtual]
 

Reimplemented from Random.

Definition at line 904 of file newran.cpp.

00904 { return "Constant";         }

Real Constant::Next  )  [inline, virtual]
 

Reimplemented from Random.

Definition at line 88 of file newran.h.

References Real.

00088 { return value; }

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

Definition at line 82 of file newran.h.

00082 {}     // private so can't access

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

Reimplemented from Random.

Definition at line 90 of file newran.h.

00090 { return 0.0; }


Field Documentation

Real Constant::value [private]
 

Definition at line 83 of file newran.h.


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