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

Uniform Class Reference

#include <newran.h>

Inheritance diagram for Uniform:

Inheritance graph
[legend]
Collaboration diagram for Uniform:

Collaboration graph
[legend]

Public Member Functions

char * Name ()
 Uniform ()
Real Next ()
ExtReal Mean () const
ExtReal Variance () const
Real Density (Real x) const

Private Member Functions

void operator= (const Uniform &)

Constructor & Destructor Documentation

Uniform::Uniform  )  [inline]
 

Definition at line 70 of file newran.h.

00070 {}                           // set value


Member Function Documentation

Real Uniform::Density Real  x  )  const [inline, virtual]
 

Reimplemented from Random.

Definition at line 74 of file newran.h.

References Real.

00074 { return (x < 0.0 || x > 1.0) ? 0 : 1.0; }

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

Reimplemented from Random.

Definition at line 72 of file newran.h.

00072 { return 0.5; }

char * Uniform::Name  )  [virtual]
 

Reimplemented from Random.

Definition at line 903 of file newran.cpp.

00903 { return "Uniform";          }

Real Uniform::Next  )  [inline, virtual]
 

Reimplemented from Random.

Definition at line 71 of file newran.h.

References Random::Next(), and Real.

00071 { return Random::Next(); }

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

Definition at line 66 of file newran.h.

00066 {}      // private so can't access

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

Reimplemented from Random.

Definition at line 73 of file newran.h.

00073 { return 1.0/12.0; }


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