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

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: 2002/08/26 14:18:37 $
00007   Version:   $Revision: 1.6 $
00008 
00009   Copyright (c) 2002 Insight 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     
00119   double FastNorm (void) ;
00120     
00121 private:
00122   double Scale ;
00123   double Rscale ;
00124   double Rcons ;
00125   int ELEN ;
00126   int LEN ;
00127   int LMASK ;
00128   int TLEN ;
00129     
00130   int gaussfaze, *gausssave;
00131   double GScale;
00132     
00133   int* vec1 ;
00134   int nslew;
00135   int irs, lseed;
00136   double chic1, chic2, actualRSD;
00137 } ;  // end of class
00138   
00139 } // end of namespace Statistics
00140 } // end of namespace itk
00141 #endif

Generated at Fri May 21 01:15:08 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000