18 #ifndef itkGaussianKernelFunction_h
19 #define itkGaussianKernelFunction_h
40 template<
typename TRealValueType =
double >
59 TRealValueType
Evaluate(
const TRealValueType & u)
const override
60 {
return ( std::exp( static_cast< TRealValueType >(-0.5) * itk::Math::sqr(u) ) *
m_Factor ); }
Light weight base class for most itk classes.
Define numeric traits for std::vector.
void PrintSelf(std::ostream &os, Indent indent) const override
static constexpr double pi
TRealValueType Evaluate(const TRealValueType &u) const override
const TRealValueType m_Factor
Kernel used for density estimation and nonparameteric regression.
~GaussianKernelFunction() override=default
Control indentation during Print() invocation.
void PrintSelf(std::ostream &os, Indent indent) const override
Gaussian kernel used for density estimation and nonparameteric regression.
typename Superclass::RealType RealType