18 #ifndef __itkTrainingFunctionBase_h
19 #define __itkTrainingFunctionBase_h
36 template<
class TSample,
class TTargetVector,
class ScalarType>
52 typedef typename TSample::MeasurementVectorType
VectorType;
74 virtual void Train(
NetworkType* itkNotUsed(net), TSample* itkNotUsed(samples), TTargetVector* itkNotUsed(targets))
83 for (
unsigned int i = 0; i < v.Size(); i++)
85 temp[i] =
static_cast<ScalarType
>(v[i]);
95 for (
unsigned int i = 0; i < v.Size(); i++)
97 temp[i] =
static_cast<ScalarType
>(v[i]);
122 #ifndef ITK_MANUAL_INSTANTIATION
123 #include "itkTrainingFunctionBase.hxx"