18 #ifndef itkWeightSetBase_h
19 #define itkWeightSetBase_h
22 #include "vnl/vnl_matrix.h"
23 #include "vnl/vnl_diag_matrix.h"
39 template<
typename TMeasurementVector,
typename TTargetVector>
52 typedef typename TMeasurementVector::ValueType
ValueType;
60 virtual void ForwardPropagate(
ValuePointer inputlayeroutputvalues);
63 void SetConnectivityMatrix(vnl_matrix < int>);
65 void SetNumberOfInputNodes(
unsigned int n);
66 unsigned int GetNumberOfInputNodes()
const;
68 void SetNumberOfOutputNodes(
unsigned int n);
69 unsigned int GetNumberOfOutputNodes()
const;
97 virtual void UpdateWeights(
ValueType LearningRate);
100 itkGetConstReferenceMacro( Momentum,
ValueType );
103 itkGetConstReferenceMacro( Bias,
ValueType );
105 itkSetMacro( FirstPass,
bool );
106 itkGetConstMacro( FirstPass,
bool );
108 itkSetMacro( SecondPass,
bool );
109 itkGetConstMacro( SecondPass,
bool );
111 void InitializeWeights();
113 itkSetMacro(WeightSetId,
unsigned int);
114 itkGetConstMacro(WeightSetId,
unsigned int);
116 itkSetMacro(InputLayerId,
unsigned int);
117 itkGetConstMacro(InputLayerId,
unsigned int);
119 itkSetMacro(OutputLayerId,
unsigned int);
120 itkGetConstMacro(OutputLayerId,
unsigned int);
128 virtual
void PrintSelf( std::ostream& os,
Indent indent ) const ITK_OVERRIDE;
132 unsigned int m_NumberOfInputNodes;
133 unsigned int m_NumberOfOutputNodes;
167 vnl_matrix<
int> m_ConnectivityMatrix;
175 unsigned int m_InputLayerId;
176 unsigned int m_OutputLayerId;
177 unsigned int m_WeightSetId;
184 #ifndef ITK_MANUAL_INSTANTIATION
185 #include "itkWeightSetBase.hxx"
This is the itkWeightSetBase class.
MersenneTwisterRandomVariateGenerator RandomVariateGeneratorType
LightProcessObject Superclass
MersenneTwisterRandom random variate generator.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
TMeasurementVector::ValueType ValueType
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Control indentation during Print() invocation.
const ValueType * ValueConstPointer