#include <vtkRandomSequence.h>
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 vtkRandomSequence * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkRandomSequence () | |
virtual | ~vtkRandomSequence () |
Reimplemented from vtkObject.
Reimplemented in vtkBoxMuellerRandomSequence, vtkGaussianRandomSequence, and vtkMinimalStandardRandomSequence.
Definition at line 39 of file vtkRandomSequence.h.
vtkRandomSequence::vtkRandomSequence | ( | ) | [protected] |
virtual vtkRandomSequence::~vtkRandomSequence | ( | ) | [protected, virtual] |
virtual const char* vtkRandomSequence::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkObject.
Reimplemented in vtkBoxMuellerRandomSequence, vtkGaussianRandomSequence, and vtkMinimalStandardRandomSequence.
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] |
Reimplemented from vtkObject.
Reimplemented in vtkBoxMuellerRandomSequence, vtkGaussianRandomSequence, and vtkMinimalStandardRandomSequence.
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] |
Current value
Implemented in vtkBoxMuellerRandomSequence, and vtkMinimalStandardRandomSequence.
virtual void vtkRandomSequence::Next | ( | ) | [pure virtual] |
Move to the next number in the random sequence.
Implemented in vtkBoxMuellerRandomSequence, and vtkMinimalStandardRandomSequence.