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 =========================================================================*/
28 #ifndef vtkBoxMuellerRandomSequence_h
29 #define vtkBoxMuellerRandomSequence_h
30 
31 #include "vtkCommonCoreModule.h" // For export macro
33 
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
43  virtual double GetValue();
44 
46  virtual void Next();
47 
49  vtkRandomSequence *GetUniformSequence();
50 
53  void SetUniformSequence(vtkRandomSequence *uniformSequence);
54 
55 protected:
57  virtual ~vtkBoxMuellerRandomSequence();
58 
60  double Value;
61 private:
62  vtkBoxMuellerRandomSequence(const vtkBoxMuellerRandomSequence&); // Not implemented.
63  void operator=(const vtkBoxMuellerRandomSequence&); // Not implemented.
64 };
65 
66 #endif // #ifndef vtkBoxMuellerRandomSequence_h
#define VTKCOMMONCORE_EXPORT
Sequence of random numbers.
virtual void Next()=0
virtual double GetValue()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
Gaussian sequence of pseudo random numbers.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
Gaussian sequence of pseudo random numbers implemented with the Box-Mueller transform.