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

itkLearningFunctionBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLearningFunctionBase.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 =========================================================================*/
00023 #ifndef __itkLearningFunctionBase_h
00024 #define __itkLearningFunctionBase_h
00025 
00026 #include "itkLightProcessObject.h"
00027 
00028 namespace itk
00029 {
00030 namespace Statistics
00031 {
00032 
00033 template<class LayerType, class TOutput>
00034 class LearningFunctionBase : public LightProcessObject
00035 {
00036 public:
00037 
00038   typedef LearningFunctionBase Self;
00039   typedef LightProcessObject Superclass;
00040   typedef SmartPointer<Self> Pointer;
00041   typedef SmartPointer<const Self> ConstPointer;
00042 
00044   itkTypeMacro(LearningFunctionBase, LightProcessObject);
00045 
00046   typedef typename LayerType::ValueType ValueType;
00047   
00048   virtual void Learn(LayerType* layer, ValueType) = 0;
00049   virtual void Learn(LayerType* layer, TOutput error,ValueType) = 0;
00050 
00051 protected:
00052 
00053   LearningFunctionBase() {};
00054   ~LearningFunctionBase() {};
00055 
00057   virtual void PrintSelf( std::ostream& os, Indent indent ) const
00058     {
00059     os << indent << "LearningFunctionBase(" << this << ")" << std::endl; 
00060     Superclass::PrintSelf( os, indent );
00061     }
00062 };
00064 
00065 } // end namespace Statistics
00066 } // end namespace itk
00067 
00068 #endif
00069 

Generated at Mon Mar 12 01:30:08 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000