VTK
|
Gaussian sequence of pseudo random numbers implemented with the Box-Mueller transform. More...
#include <vtkBoxMuellerRandomSequence.h>
Public Types | |
typedef vtkGaussianRandomSequence | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkBoxMuellerRandomSequence * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual double | GetValue () |
virtual void | Next () |
vtkRandomSequence * | GetUniformSequence () |
void | SetUniformSequence (vtkRandomSequence *uniformSequence) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkBoxMuellerRandomSequence * | SafeDownCast (vtkObjectBase *o) |
static vtkBoxMuellerRandomSequence * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkBoxMuellerRandomSequence () | |
virtual | ~vtkBoxMuellerRandomSequence () |
Protected Attributes | |
vtkRandomSequence * | UniformSequence |
double | Value |
Gaussian sequence of pseudo random numbers implemented with the Box-Mueller transform.
vtkGaussianRandomSequence is a sequence of pseudo random numbers distributed according to the Gaussian/normal distribution (mean=0 and standard deviation=1).
It based is calculation from a uniformly distributed pseudo random sequence. The initial sequence is a vtkMinimalStandardRandomSequence.
Definition at line 31 of file vtkBoxMuellerRandomSequence.h.
Reimplemented from vtkGaussianRandomSequence.
Definition at line 34 of file vtkBoxMuellerRandomSequence.h.
vtkBoxMuellerRandomSequence::vtkBoxMuellerRandomSequence | ( | ) | [protected] |
virtual vtkBoxMuellerRandomSequence::~vtkBoxMuellerRandomSequence | ( | ) | [protected, virtual] |
static int vtkBoxMuellerRandomSequence::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 vtkGaussianRandomSequence.
virtual int vtkBoxMuellerRandomSequence::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 vtkGaussianRandomSequence.
static vtkBoxMuellerRandomSequence* vtkBoxMuellerRandomSequence::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkGaussianRandomSequence.
virtual vtkObjectBase* vtkBoxMuellerRandomSequence::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkGaussianRandomSequence.
Reimplemented from vtkGaussianRandomSequence.
void vtkBoxMuellerRandomSequence::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 vtkGaussianRandomSequence.
static vtkBoxMuellerRandomSequence* vtkBoxMuellerRandomSequence::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
virtual double vtkBoxMuellerRandomSequence::GetValue | ( | ) | [virtual] |
Current value.
Implements vtkRandomSequence.
virtual void vtkBoxMuellerRandomSequence::Next | ( | ) | [virtual] |
Move to the next number in the random sequence.
Implements vtkRandomSequence.
Return the uniformly distributed sequence of random numbers.
void vtkBoxMuellerRandomSequence::SetUniformSequence | ( | vtkRandomSequence * | uniformSequence | ) |
Set the uniformly distributed sequence of random numbers. Default is a .
Definition at line 56 of file vtkBoxMuellerRandomSequence.h.
double vtkBoxMuellerRandomSequence::Value [protected] |
Definition at line 57 of file vtkBoxMuellerRandomSequence.h.