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

itkErrorFunctionBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkErrorFunctionBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/02 19:17:37 $
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 
00018 #ifndef _itkErrorFunctionBase_h
00019 #define _itkErrorFunctionBase_h
00020 
00021 #include "itkFunctionBase.h"
00022 
00023 namespace itk
00024 {
00025 namespace Statistics
00026 {
00027 
00028 template<class TVector, class TOutput>
00029 class ErrorFunctionBase : public FunctionBase<TVector, TOutput>
00030 {
00031 public:
00033   typedef ErrorFunctionBase Self;
00034   typedef FunctionBase<TVector, TOutput> Superclass;
00035   typedef SmartPointer<Self> Pointer;
00036   typedef SmartPointer<const Self> ConstPointer;
00037 
00039   itkTypeMacro(ErrorFunctionBase, FunctionBase);
00040 
00042   typedef TVector ErrorVectorType;
00043 
00045   typedef TOutput OutputType;
00046 
00047   virtual OutputType Evaluate(const ErrorVectorType&) const = 0;
00048 
00049   virtual ErrorVectorType EvaluateDerivative(const ErrorVectorType&) const = 0;
00050 
00051 protected:
00052 
00053   ErrorFunctionBase(){};
00054   virtual ~ErrorFunctionBase(){}; 
00055 
00056 private:
00057 
00058   ErrorFunctionBase(const Self&); //purposely not implemented
00059   void operator=(const Self&); //purposely not implemented
00060 };
00061 
00062 } // end namespace itk
00063 } // end namespace Statistics
00064 #endif

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