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

itkRBFBackPropagationLearningFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkRBFBackPropagationLearningFunction.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 
00019 #ifndef __itkRBFBackPropagationLearningFunction_h
00020 #define __itkRBFBackPropagationLearningFunction_h
00021 
00022 #include <iostream>
00023 #include "itkLightProcessObject.h"
00024 #include "itkLearningFunctionBase.h"
00025 #include "itkRBFLayer.h"
00026 
00027 namespace itk
00028 {
00029 namespace Statistics
00030 {
00031 
00032 template<class LayerType, class TOutput>
00033 class RBFBackPropagationLearningFunction : public LearningFunctionBase<LayerType, TOutput>
00034 {
00035 public:
00036 
00037   typedef RBFBackPropagationLearningFunction Self;
00038   typedef LearningFunctionBase<LayerType, TOutput> Superclass;
00039   typedef SmartPointer<Self> Pointer;
00040   typedef SmartPointer<const Self> ConstPointer;
00041 
00043   itkTypeMacro(RBFBackPropagationLearningFunction, LearningFunctionBase);
00044 
00046   itkNewMacro(Self);
00047 
00048   typedef typename Superclass::ValueType ValueType;
00049 
00050   void Learn(LayerType* layer,ValueType learningrate);
00051 
00052   void Learn(LayerType* layer, TOutput error, ValueType learningrate);
00053 
00054   itkSetMacro(LearningRate1, ValueType);
00055   itkGetMacro(LearningRate1, ValueType);
00056   itkSetMacro(LearningRate2, ValueType);
00057   itkGetMacro(LearningRate2, ValueType);
00058   itkSetMacro(LearningRate3, ValueType);
00059   itkGetMacro(LearningRate3, ValueType);
00060 
00061 protected:
00062 
00063   RBFBackPropagationLearningFunction();
00064   ~RBFBackPropagationLearningFunction() {};
00065  
00067   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00068 
00069 private:
00070 
00071   ValueType             m_LearningRate1;   // output weights
00072   ValueType             m_LearningRate2;   // centers
00073   ValueType             m_LearningRate3;   // widths
00074   vnl_vector<ValueType> m_OutputErrors;
00075 
00076 };
00077 
00078 } // end namespace Statistics
00079 } // end namespace itk
00080 
00081 #ifndef ITK_MANUAL_INSTANTIATION
00082   #include "itkRBFBackPropagationLearningFunction.txx"
00083 #endif
00084 
00085 #endif

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