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) ;
00061 
00063   typedef typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType;
00064 
00066   typedef typename Superclass::MeasurementVectorType MeasurementVectorType;
00067 
00069   typedef Array< double >           OutputType;
00070 
00072   OutputType* GetOutput() ;
00073 
00074 protected:
00075   MeanCalculator() ;
00076   virtual ~MeanCalculator() {}
00077   void PrintSelf(std::ostream& os, Indent indent) const;
00078 
00080   void GenerateData() ;
00081 
00082 private:
00084   OutputType m_Output ;
00085 } ; // end of class
00086 
00087   } // end of namespace Statistics 
00088 } // end of namespace itk 
00089 
00090 #ifndef ITK_MANUAL_INSTANTIATION
00091 #include "itkMeanCalculator.txx"
00092 #endif
00093 
00094 #endif
00095 
00096 

Generated at Tue Jul 29 21:10:50 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000