
Note that the
in the exponent is not squared as per the usual Gaussian. This means that the kernel is actually a scaled Laplacian (i.e. does not integrate to 1). Combining with Almost2Norm, however, produces the same result as using PNorm<2> and GaussianKernel, but is much more efficient, as the square root in the norm and square in the exponent of the Gaussian are cancelled.
Definition at line 36 of file AlmostGaussianKernel.hpp.
Public Member Functions | |
| AlmostGaussianKernel () | |
| Default constructor. | |
| AlmostGaussianKernel (const unsigned int N, const double h) | |
| Constructor. | |
| virtual | ~AlmostGaussianKernel () |
| Destructor. | |
| virtual double | operator() (const double x) const |
| Evaluate the kernel. | |
| virtual double | sample () const |
| Sample from the kernel. | |
Default constructor.
This should generally only be used when the object is to be restored from a serialization.
Definition at line 5 of file AlmostGaussianKernel.cpp.
| AlmostGaussianKernel | ( | const unsigned int | N, | |
| const double | h | |||
| ) |
Constructor.
| N | ; dimensionality of the problem. | |
| h | ; the scaling parameter (bandwidth). |
and
, its normalisation is. Supplying these allows substantial performance increases through precalculationa.
Definition at line 9 of file AlmostGaussianKernel.cpp.
| ~AlmostGaussianKernel | ( | ) | [virtual] |
| double operator() | ( | const double | x | ) | const [inline, virtual] |
Evaluate the kernel.
| x | Point at which to evaluate the kernel. |
Implements Kernel.
Definition at line 104 of file AlmostGaussianKernel.hpp.
| double sample | ( | ) | const [inline, virtual] |
Sample from the kernel.
Implements Kernel.
Definition at line 109 of file AlmostGaussianKernel.hpp.
1.5.3