VTK
|
Sequence of random numbers. More...
#include <vtkRandomSequence.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkRandomSequence * | NewInstance () 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 vtkRandomSequence * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkRandomSequence () | |
virtual | ~vtkRandomSequence () |
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.
Reimplemented from vtkObject.
Reimplemented in vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence, and vtkGaussianRandomSequence.
Definition at line 40 of file vtkRandomSequence.h.
vtkRandomSequence::vtkRandomSequence | ( | ) | [protected] |
virtual vtkRandomSequence::~vtkRandomSequence | ( | ) | [protected, 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 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.
static vtkRandomSequence* vtkRandomSequence::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
Reimplemented in vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence, and vtkGaussianRandomSequence.
virtual vtkObjectBase* vtkRandomSequence::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
Reimplemented in vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence, and vtkGaussianRandomSequence.
vtkRandomSequence* vtkRandomSequence::NewInstance | ( | ) | const |
Reimplemented from vtkObject.
Reimplemented in vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence, and vtkGaussianRandomSequence.
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] |
Current value
Implemented in vtkMinimalStandardRandomSequence, and vtkBoxMuellerRandomSequence.
virtual void vtkRandomSequence::Next | ( | ) | [pure virtual] |
Move to the next number in the random sequence.
Implemented in vtkMinimalStandardRandomSequence, and vtkBoxMuellerRandomSequence.