18#ifndef itkGaussianKernelFunction_h
19#define itkGaussianKernelFunction_h
40template <
typename TRealValueType =
double>
60 Evaluate(
const TRealValueType & u)
const override
62 return (std::exp(TRealValueType{ -0.5 } * itk::Math::sqr(u)) * m_Factor);
68 : m_Factor(TRealValueType{ 1.0 } /
std::sqrt(TRealValueType{ 2.0 *
itk::Math::
pi }))
74 Superclass::PrintSelf(os, indent);
78 const TRealValueType m_Factor{};
Gaussian kernel used for density estimation and nonparametric regression.
void PrintSelf(std::ostream &os, Indent indent) const override
TRealValueType Evaluate(const TRealValueType &u) const override
~GaussianKernelFunction() override=default
Control indentation during Print() invocation.
Kernel used for density estimation and nonparametric regression.
static constexpr double pi
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....