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: 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 =========================================================================*/
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 TTargetVector>
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, TTargetVector error,ValueType) = 0;
00050 
00051       protected:
00052         LearningFunctionBase() {};
00053         ~LearningFunctionBase() {};
00054 
00056         virtual void PrintSelf( std::ostream& os, Indent indent ) const
00057           {
00058           os << indent << "LearningFunctionBase(" << this << ")" << std::endl;
00059           Superclass::PrintSelf( os, indent );
00060           }
00061         };
00063 
00064     } // end namespace Statistics
00065 } // end namespace itk
00066 
00067 #endif
00068 

Generated at Wed Nov 5 22:38:55 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000