ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkRBFBackPropagationLearningFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkRBFBackPropagationLearningFunction_h
19 #define __itkRBFBackPropagationLearningFunction_h
20 
21 #include <iostream>
23 #include "itkRBFLayer.h"
24 
25 namespace itk
26 {
27 namespace Statistics
28 {
35 template<typename LayerType, typename TTargetVector>
36 class RBFBackPropagationLearningFunction : public LearningFunctionBase<LayerType, TTargetVector>
37 {
38 public:
39 
44 
45  typedef typename LayerType::LayerInterfaceType LayerInterfaceType;
48 
50  itkNewMacro(Self);
51 
52  typedef typename Superclass::ValueType ValueType;
53 
54  virtual void Learn(LayerType* layer,ValueType learningrate);
55  virtual void Learn(LayerType* layer, TTargetVector error, ValueType learningrate);
56 
57  itkSetMacro(LearningRate1, ValueType);
58  itkGetMacro(LearningRate1, ValueType);
59  itkSetMacro(LearningRate2, ValueType);
60  itkGetMacro(LearningRate2, ValueType);
61  itkSetMacro(LearningRate3, ValueType);
62  itkGetMacro(LearningRate3, ValueType);
63 
64 protected:
65 
68 
70  virtual void PrintSelf( std::ostream& os, Indent indent ) const;
71 
72 private:
73 
74  ValueType m_LearningRate1; // output weights
77  vnl_vector<ValueType> m_OutputErrors;
78 
79 };
80 
81 } // end namespace Statistics
82 } // end namespace itk
83 
84 #ifndef ITK_MANUAL_INSTANTIATION
85 #include "itkRBFBackPropagationLearningFunction.hxx"
86 #endif
87 
88 #endif
Light weight base class for most itk classes.
virtual void Learn(LayerType *layer, ValueType learningrate)
LearningFunctionBase< LayerType, TTargetVector > Superclass
This is the itkRBFBackPropagationLearningFunction class.
virtual void PrintSelf(std::ostream &os, Indent indent) const
Control indentation during Print() invocation.
Definition: itkIndent.h:49
The LearningFunctionBase is the base class for all the learning strategies.