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

itkErrorBackPropagationLearningFunctionBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkErrorBackPropagationLearningFunctionBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-24 21:33:49 $
00007   Version:   $Revision: 1.4 $
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 
00026 #ifndef __itkErrorBackPropagationLearningFunctionBase_h
00027 #define __itkErrorBackPropagationLearningFunctionBase_h
00028 
00029 #include <iostream>
00030 #include "itkLightProcessObject.h"
00031 #include "itkLearningFunctionBase.h"
00032 
00033 namespace itk
00034 {
00035 namespace Statistics
00036 {
00037 template<class LayerType, class TTargetVector>
00038 class ErrorBackPropagationLearningFunctionBase : public LearningFunctionBase<typename LayerType::LayerInterfaceType, TTargetVector>
00039 {
00040 public:
00041   typedef ErrorBackPropagationLearningFunctionBase Self;
00042   typedef LearningFunctionBase<typename LayerType::LayerInterfaceType, TTargetVector>
00043                                                    Superclass;
00044   typedef SmartPointer<Self>                       Pointer;
00045   typedef SmartPointer<const Self>                 ConstPointer;
00046 
00047   typedef typename Superclass::ValueType         ValueType;
00048   typedef typename LayerType::LayerInterfaceType LayerInterfaceType;
00049 
00051   itkTypeMacro(ErrorBackPropagationLearningFunctionBase, LearningFunctionBase);
00052 
00054   itkNewMacro(Self);
00055 
00056   virtual void Learn( LayerInterfaceType * layer, ValueType learningrate);
00057   virtual void Learn( LayerInterfaceType * layer, TTargetVector error, ValueType learningrate);
00058 
00059 protected:
00060 
00061   ErrorBackPropagationLearningFunctionBase() {};
00062   ~ErrorBackPropagationLearningFunctionBase() {};
00063 
00064   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00065 
00066 };
00067 
00068 } // end namespace Statistics
00069 } // end namespace itk
00070 
00071 #ifndef ITK_MANUAL_INSTANTIATION
00072   #include "itkErrorBackPropagationLearningFunctionBase.txx"
00073 #endif
00074 
00075 #endif
00076 

Generated at Mon Jul 12 2010 18:15:55 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000