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

itkCumulativeGaussianCostFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCumulativeGaussianCostFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/10/27 19:51:42 $
00007   Version:   $Revision: 1.7 $
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 __itkCumulativeGaussianCostFunction_h
00019 #define __itkCumulativeGaussianCostFunction_h
00020 
00021 #include "itkMultipleValuedCostFunction.h"
00022 
00023 namespace itk
00024 {
00025 
00050 class CumulativeGaussianCostFunction : public MultipleValuedCostFunction
00051 {
00052 public:
00053 
00055   typedef CumulativeGaussianCostFunction    Self;
00056   typedef MultipleValuedCostFunction        Superclass;
00057   typedef SmartPointer<Self>                Pointer;
00058   typedef SmartPointer<const Self>          ConstPointer;
00059 
00061   itkTypeMacro( CumulativeGaussianCostFunction, MultipleValuedCostFunction );
00062 
00064   itkNewMacro(Self);
00065 
00067   typedef Superclass::ParametersType        ParametersType;
00068   typedef Superclass::MeasureType           MeasureType;
00069   typedef Superclass::DerivativeType        DerivativeType;
00070 
00072   enum {SpaceDimension = 4};
00073 
00075   void GetDerivative( const ParametersType & itkNotUsed(parameters), 
00076                       DerivativeType & itkNotUsed(derivative)) const {};
00077 
00079   MeasureType GetValue( const ParametersType & parameters ) const;
00080 
00082   MeasureType * GetValue( ParametersType & parameters );
00083 
00085   double CalculateFitError(MeasureType * setTestArray);
00086 
00088   double EvaluateCumulativeGaussian(double argument) const;
00089 
00091   unsigned int GetNumberOfParameters() const;
00092 
00094   unsigned int GetNumberOfValues() const;
00095 
00097   void Initialize(unsigned int rangeDimension);
00098 
00100   void SetOriginalDataArray(MeasureType * setOriginalDataArray);
00101 
00102 protected:
00103   CumulativeGaussianCostFunction();
00104   virtual ~CumulativeGaussianCostFunction();
00105 
00106   void PrintSelf(std::ostream &os, Indent indent) const;
00107 
00108 private:
00109  
00111   MeasureType * m_OriginalDataArray;
00112 
00114   unsigned int m_RangeDimension;
00115 
00117   mutable MeasureType    m_Measure;
00118   mutable MeasureType *  m_MeasurePointer;
00119   mutable ParametersType m_Parameters;
00120 };
00121 
00122 } // end namespace itk
00123 
00124 #endif
00125 

Generated at Wed Nov 5 21:01:13 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000