14 #include <mrpt/core/bits_math.h>
15 #include <mrpt/typemeta/TEnumType.h>
52 const double kernelParamSqr = mrpt::square(kernelParam);
68 return [kernelParamSqr, kernelParam](
double errorSqr) ->
double {
69 return (kernelParamSqr) / mrpt::square(errorSqr + kernelParam);
81 return [kernelParamSqr](
double errorSqr) ->
double {
82 return (kernelParamSqr) / (errorSqr + kernelParamSqr);
86 throw std::invalid_argument(
"Unknown kernel type");