VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
25 #ifndef __vtkBoxMuellerRandomSequence_h
26 #define __vtkBoxMuellerRandomSequence_h
27 
28 #include "vtkCommonCoreModule.h" // For export macro
30 
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
40  virtual double GetValue();
41 
43  virtual void Next();
44 
46  vtkRandomSequence *GetUniformSequence();
47 
50  void SetUniformSequence(vtkRandomSequence *uniformSequence);
51 
52 protected:
54  virtual ~vtkBoxMuellerRandomSequence();
55 
57  double Value;
58 private:
59  vtkBoxMuellerRandomSequence(const vtkBoxMuellerRandomSequence&); // Not implemented.
60  void operator=(const vtkBoxMuellerRandomSequence&); // Not implemented.
61 };
62 
63 #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.