Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

Review/Statistics/itkNormalVariateGenerator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNormalVariateGenerator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:43:58 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkNormalVariateGenerator_h
00018 #define __itkNormalVariateGenerator_h
00019 
00020 #include "itkObjectFactory.h"
00021 #include "itkRandomVariateGeneratorBase.h"
00022 
00023 namespace itk {
00024 namespace Statistics {
00025 
00091 class ITK_EXPORT NormalVariateGenerator : 
00092     public RandomVariateGeneratorBase
00093 {
00094 public:
00096   typedef NormalVariateGenerator     Self;
00097   typedef RandomVariateGeneratorBase Superclass;
00098   typedef SmartPointer<Self>         Pointer;
00099   typedef SmartPointer<const Self>   ConstPointer;
00100 
00102   itkTypeMacro(NormalVariateGenerator, 
00103                RandomVariateGeneratorBase );
00104 
00106   itkNewMacro(Self);
00107 
00109   void Initialize(int randomSeed);
00110 
00112   double GetVariate();
00113 
00114 protected:
00115   NormalVariateGenerator();
00116   virtual ~NormalVariateGenerator(); 
00117   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00118     
00120   double FastNorm (void);
00121 
00122 private:
00123   double   m_Scale;
00124   double   m_Rscale;
00125   double   m_Rcons;
00126   int      m_ELEN;
00127   int      m_LEN;
00128   int      m_LMASK;
00129   int      m_TLEN;
00130     
00131   int      m_Gaussfaze;
00132   int    * m_Gausssave;
00133   
00134   double   m_GScale;
00135     
00136   int    * m_Vec1;
00137   int      m_Nslew;
00138   int      m_Irs;
00139   int      m_Lseed;
00140   double   m_Chic1;
00141   double   m_Chic2;
00142   double   m_ActualRSD;
00143 
00144 };  // end of class
00145   
00146 } // end of namespace Statistics
00147 } // end of namespace itk
00148 #endif
00149 

Generated at Mon Jul 12 2010 19:19:41 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000