VTK
vtkBoxMuellerRandomSequence.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoxMuellerRandomSequence.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 =========================================================================*/
26 #ifndef vtkBoxMuellerRandomSequence_h
27 #define vtkBoxMuellerRandomSequence_h
28 
29 #include "vtkCommonCoreModule.h" // For export macro
31 
32 class VTKCOMMONCORE_EXPORT vtkBoxMuellerRandomSequence: public vtkGaussianRandomSequence
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
37 
39 
43  double GetValue() VTK_OVERRIDE;
44 
48  void Next() VTK_OVERRIDE;
49 
53  vtkRandomSequence *GetUniformSequence();
54 
59  void SetUniformSequence(vtkRandomSequence *uniformSequence);
60 
61 protected:
63  ~vtkBoxMuellerRandomSequence() VTK_OVERRIDE;
64 
65  vtkRandomSequence *UniformSequence;
66  double Value;
67 private:
68  vtkBoxMuellerRandomSequence(const vtkBoxMuellerRandomSequence&) VTK_DELETE_FUNCTION;
69  void operator=(const vtkBoxMuellerRandomSequence&) VTK_DELETE_FUNCTION;
70 };
71 
72 #endif // #ifndef vtkBoxMuellerRandomSequence_h
Sequence of random numbers.
virtual double GetValue()=0
Current value.
a simple class to control print indentation
Definition: vtkIndent.h:33
Gaussian sequence of pseudo random numbers.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Gaussian sequence of pseudo random numbers implemented with the Box-Mueller transform.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.