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: 2009-01-28 21:04:59 $
00007 Version:   $Revision: 1.3 $
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 #ifndef __itkRBFBackPropagationLearningFunction_h
00018 #define __itkRBFBackPropagationLearningFunction_h
00019 
00020 #include <iostream>
00021 #include "itkLightProcessObject.h"
00022 #include "itkLearningFunctionBase.h"
00023 #include "itkRBFLayer.h"
00024 
00025 namespace itk
00026 {
00027 namespace Statistics
00028 {
00029 
00030 template<class LayerType, class TTargetVector>
00031 class RBFBackPropagationLearningFunction : public LearningFunctionBase<LayerType, TTargetVector>
00032 {
00033 public:
00034 
00035   typedef RBFBackPropagationLearningFunction             Self;
00036   typedef LearningFunctionBase<LayerType, TTargetVector> Superclass;
00037   typedef SmartPointer<Self>                             Pointer;
00038   typedef SmartPointer<const Self>                       ConstPointer;
00039 
00040   typedef typename LayerType::LayerInterfaceType LayerInterfaceType;
00042   itkTypeMacro(RBFBackPropagationLearningFunction, LearningFunctionBase);
00043 
00045   itkNewMacro(Self);
00046 
00047   typedef typename Superclass::ValueType ValueType;
00048 
00049   virtual void Learn(LayerType* layer,ValueType learningrate);
00050   virtual void Learn(LayerType* layer, TTargetVector error, ValueType learningrate);
00051 
00052   itkSetMacro(LearningRate1, ValueType);
00053   itkGetMacro(LearningRate1, ValueType);
00054   itkSetMacro(LearningRate2, ValueType);
00055   itkGetMacro(LearningRate2, ValueType);
00056   itkSetMacro(LearningRate3, ValueType);
00057   itkGetMacro(LearningRate3, ValueType);
00058 
00059 protected:
00060 
00061   RBFBackPropagationLearningFunction();
00062   virtual ~RBFBackPropagationLearningFunction() {};
00063 
00065   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00066 
00067 private:
00068 
00069   ValueType             m_LearningRate1;   // output weights
00070   ValueType             m_LearningRate2;   // centers
00071   ValueType             m_LearningRate3;   // widths
00072   vnl_vector<ValueType> m_OutputErrors;
00073   
00074 };
00075 
00076 } // end namespace Statistics
00077 } // end namespace itk
00078 
00079 #ifndef ITK_MANUAL_INSTANTIATION
00080 #include "itkRBFBackPropagationLearningFunction.txx"
00081 #endif
00082 
00083 #endif
00084 

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