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

itkNNetDistanceMetricBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNNetDistanceMetricBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/08/17 13:10:57 $
00007   Version:   $Revision: 1.2 $
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 _itkNNetDistanceMetricBase_h
00019 #define _itkNNetDistanceMetricBase_h
00020 
00021 #include "itkFunctionBase.h"
00022 
00023 namespace itk
00024 {
00025 namespace Statistics
00026 {
00027 
00028 template<class TMeasurementVector>
00029 class NNetDistanceMetricBase : public FunctionBase<TMeasurementVector, double>
00030 {
00031 public:
00032 
00034   typedef NNetDistanceMetricBase Self;
00035   typedef FunctionBase<TMeasurementVector,double> Superclass;
00036   typedef SmartPointer<Self> Pointer;
00037   typedef SmartPointer<const Self> ConstPointer;
00038 
00040   itkTypeMacro(NNetDistanceMetricBase, FunctionBase);
00041 
00043   typedef TMeasurementVector InputVectorType;
00044 
00046   virtual double Evaluate(const InputVectorType& x1, const InputVectorType& x2) const = 0;
00047 
00049   virtual double Evaluate(const InputVectorType& x) const {return 0;}
00050 
00051 protected:
00052   NNetDistanceMetricBase() {};
00053   ~NNetDistanceMetricBase() {};
00054 
00056   virtual void PrintSelf( std::ostream& os, Indent indent ) const
00057     {
00058     os << indent << "NNetDistanceMetricBase(" << this << ")" << std::endl;
00059     Superclass::PrintSelf( os, indent );
00060     }
00062 
00063 private:
00064 
00065   NNetDistanceMetricBase (const Self&); //purposely not implemented
00066   void operator=(const Self&); //purposely not implemented
00067 
00068 };
00069 
00070 } // end namespace Statistics
00071 } // end namespace itk
00072 
00073 #endif
00074 

Generated at Wed Nov 5 23:11:50 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000