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

itkMeanCalculator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeanCalculator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/07/26 15:54:59 $
00007   Version:   $Revision: 1.11 $
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 
00018 #ifndef __itkMeanCalculator_h
00019 #define __itkMeanCalculator_h
00020 
00021 #include "itkSampleAlgorithmBase.h"
00022 
00023 #include "itkArray.h"
00024 
00025 namespace itk{ 
00026   namespace Statistics{
00027   
00046 template< class TSample >
00047 class MeanCalculator :
00048       public SampleAlgorithmBase< TSample >
00049 {
00050 public:
00052   typedef MeanCalculator Self;
00053   typedef SampleAlgorithmBase< TSample >  Superclass ;
00054   typedef SmartPointer<Self> Pointer;
00055   typedef SmartPointer<const Self> ConstPointer;
00056 
00058   itkTypeMacro(MeanCalculator, SampleAlgorithmBase);
00059   itkNewMacro(Self) ;
00060 
00062   typedef typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType;
00063 
00065   typedef typename Superclass::MeasurementVectorType MeasurementVectorType;
00066   
00068   typedef Array< double >           OutputType;
00069 
00071   OutputType* GetOutput() ;
00072 
00073 protected:
00074   MeanCalculator() ;
00075   virtual ~MeanCalculator() {}
00076   void PrintSelf(std::ostream& os, Indent indent) const;
00077 
00079   void GenerateData() ;
00080 
00081 private:
00083   OutputType m_Output ;
00084 } ; // end of class
00085     
00086   } // end of namespace Statistics 
00087 } // end of namespace itk 
00088 
00089 #ifndef ITK_MANUAL_INSTANTIATION
00090 #include "itkMeanCalculator.txx"
00091 #endif
00092 
00093 #endif
00094 

Generated at Wed May 24 23:38:07 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000