ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Numerics
NeuralNetworks
include
itkNeuralNetworkObject.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 __itkNeuralNetworkObject_h
19
#define __itkNeuralNetworkObject_h
20
21
#include "
itkDataObject.h
"
22
#include "
itkLayerBase.h
"
23
#include "
itkLearningFunctionBase.h
"
24
25
namespace
itk
26
{
27
namespace
Statistics
28
{
35
template
<
class
TMeasurementVector,
class
TTargetVector >
36
class
NeuralNetworkObject
:
public
DataObject
37
{
38
public
:
39
40
typedef
NeuralNetworkObject
Self
;
41
typedef
DataObject
Superclass
;
42
typedef
SmartPointer<Self>
Pointer
;
43
typedef
SmartPointer<const Self>
ConstPointer
;
44
45
itkTypeMacro(
NeuralNetworkObject
,
DataObject
);
46
47
typedef
TMeasurementVector
MeasurementVectorType
;
48
typedef
typename
MeasurementVectorType::ValueType
ValueType
;
49
typedef
Array<ValueType>
NetworkOutputType
;
50
typedef
TTargetVector
TargetVectorType
;
51
52
typedef
LayerBase<TMeasurementVector, TTargetVector>
LayerInterfaceType
;
53
54
virtual
NetworkOutputType
GenerateOutput
(TMeasurementVector samplevector)=0;
55
56
virtual
void
BackwardPropagate
(
NetworkOutputType
errors) = 0;
57
virtual
void
UpdateWeights
(
ValueType
) = 0;
58
59
protected
:
60
61
NeuralNetworkObject
();
62
virtual
~NeuralNetworkObject
();
63
65
virtual
void
PrintSelf
( std::ostream& os,
Indent
indent )
const
;
66
67
ValueType
m_LearningRate
;
68
69
};
70
71
}
// end namespace Statistics
72
}
// end namespace itk
73
74
#ifndef ITK_MANUAL_INSTANTIATION
75
#include "itkNeuralNetworkObject.hxx"
76
#endif
77
78
#endif
79
Generated on Sun Dec 9 2012 01:20:57 for ITK by
1.8.2