vtkRandomSequence Class Reference

#include <vtkRandomSequence.h>

Inheritance diagram for vtkRandomSequence:

Inheritance graph
[legend]
Collaboration diagram for vtkRandomSequence:

Collaboration graph
[legend]

List of all members.


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 36 of file vtkRandomSequence.h.


Public Types

typedef vtkObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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 (vtkObject *o)

Protected Member Functions

 vtkRandomSequence ()
virtual ~vtkRandomSequence ()

Member Typedef Documentation

Reimplemented from vtkObject.

Reimplemented in vtkBoxMuellerRandomSequence, vtkGaussianRandomSequence, and vtkMinimalStandardRandomSequence.

Definition at line 39 of file vtkRandomSequence.h.


Constructor & Destructor Documentation

vtkRandomSequence::vtkRandomSequence (  )  [protected]

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


Member Function Documentation

virtual const char* vtkRandomSequence::GetClassName (  )  [virtual]

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 vtkBoxMuellerRandomSequence, vtkGaussianRandomSequence, and vtkMinimalStandardRandomSequence.

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 vtkBoxMuellerRandomSequence, vtkGaussianRandomSequence, and vtkMinimalStandardRandomSequence.

static vtkRandomSequence* vtkRandomSequence::SafeDownCast ( vtkObject o  )  [static]

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 vtkBoxMuellerRandomSequence, vtkGaussianRandomSequence, and vtkMinimalStandardRandomSequence.

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

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

Move to the next number in the random sequence.

Implemented in vtkBoxMuellerRandomSequence, and vtkMinimalStandardRandomSequence.


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

Generated on Mon Sep 27 18:46:25 2010 for VTK by  doxygen 1.5.6