18 #ifndef __itkGaussianRadialBasisFunction_txx
19 #define __itkGaussianRadialBasisFunction_txx
31 template<
class ScalarType>
38 template<
class ScalarType>
45 template<
class ScalarType>
51 ScalarType radius = Superclass::GetRadius();
52 val = vcl_exp(-0.5*vcl_pow(input,2)/vcl_pow(radius,2));
57 template<
class ScalarType>
61 char mode,
int element_id)
const
64 ScalarType radius=Superclass::GetRadius();
65 ArrayType center = Superclass::GetCenter();
68 ScalarType temp1= vcl_pow(radius,2);
70 *(input.GetElement(element_id)-center.GetElement(element_id))/temp1;
74 val=Evaluate(dist)*vcl_pow(dist,2)/vcl_pow(radius,3);
80 template<
class ScalarType>
85 os << indent <<
"GaussianRadialBasisFunction(" <<
this <<
")" << std::endl;
86 Superclass::PrintSelf( os, indent );