VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkRandomSequence Class Reference

Sequence of random numbers. More...

#include <vtkRandomSequence.h>

Inheritance diagram for vtkRandomSequence:
Inheritance graph
[legend]
Collaboration diagram for vtkRandomSequence:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkRandomSequenceNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual double GetValue ()=0
virtual void Next ()=0

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkRandomSequenceSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkRandomSequence ()
virtual ~vtkRandomSequence ()

Detailed Description

Sequence of random numbers.

vtkRandomSequence defines the interface of any sequence of random numbers.

At this level of abstraction, there is no assumption about the distribution of the numbers or about the quality of the sequence of numbers to be statistically independent. There is no assumption about the range of values.

To the question about why a random "sequence" class instead of a random "generator" class or to a random "number" class?, see the OOSC book: "Object-Oriented Software Construction", 2nd Edition, by Bertrand Meyer. chapter 23, "Principles of class design", "Pseudo-random number generators: a design exercise", page 754--755.

Definition at line 37 of file vtkRandomSequence.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Reimplemented in vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence, and vtkGaussianRandomSequence.

Definition at line 40 of file vtkRandomSequence.h.


Constructor & Destructor Documentation

virtual vtkRandomSequence::~vtkRandomSequence ( ) [protected, virtual]

Member Function Documentation

static int vtkRandomSequence::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence, and vtkGaussianRandomSequence.

virtual int vtkRandomSequence::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence, and vtkGaussianRandomSequence.

virtual vtkObjectBase* vtkRandomSequence::NewInstanceInternal ( ) const [protected, virtual]
void vtkRandomSequence::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

Reimplemented in vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence, and vtkGaussianRandomSequence.

virtual double vtkRandomSequence::GetValue ( ) [pure virtual]
virtual void vtkRandomSequence::Next ( ) [pure virtual]

Move to the next number in the random sequence.

Implemented in vtkMinimalStandardRandomSequence, and vtkBoxMuellerRandomSequence.


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