The spherical kernel, which is 1 when the distance between the two argument points is less than or equal to the bandwidth, or 0 otherwise.
More...
#include <spherical_kernel.hpp>
|
| SphericalKernel (const double bandwidth=1.0) |
| Construct the SphericalKernel with the given bandwidth.
|
|
template<typename VecTypeA , typename VecTypeB > |
double | Evaluate (const VecTypeA &a, const VecTypeB &b) const |
| Evaluate the spherical kernel with the given two vectors. More...
|
|
template<typename VecTypeA , typename VecTypeB > |
double | ConvolutionIntegral (const VecTypeA &a, const VecTypeB &b) const |
| Obtains the convolution integral [integral K(||x-a||)K(||b-x||)dx] for the two vectors. More...
|
|
double | Normalizer (size_t dimension) const |
|
double | Evaluate (const double t) const |
| Evaluate the kernel when only a distance is given, not two points. More...
|
|
double | Gradient (double t) |
|
template<typename Archive > |
void | serialize (Archive &ar, const uint32_t) |
| Serialize the object.
|
|
The spherical kernel, which is 1 when the distance between the two argument points is less than or equal to the bandwidth, or 0 otherwise.
◆ ConvolutionIntegral()
template<typename VecTypeA , typename VecTypeB >
double mlpack::kernel::SphericalKernel::ConvolutionIntegral |
( |
const VecTypeA & |
a, |
|
|
const VecTypeB & |
b |
|
) |
| const |
|
inline |
Obtains the convolution integral [integral K(||x-a||)K(||b-x||)dx] for the two vectors.
- Template Parameters
-
VecTypeA | Type of first vector (arma::vec, arma::sp_vec should be expected). |
VecTypeB | Type of second vector. |
- Parameters
-
a | First vector. |
b | Second vector. |
- Returns
- The convolution integral value.
◆ Evaluate() [1/2]
template<typename VecTypeA , typename VecTypeB >
double mlpack::kernel::SphericalKernel::Evaluate |
( |
const VecTypeA & |
a, |
|
|
const VecTypeB & |
b |
|
) |
| const |
|
inline |
Evaluate the spherical kernel with the given two vectors.
- Template Parameters
-
VecTypeA | Type of first vector. |
VecTypeB | Type of second vector. |
- Parameters
-
a | First vector. |
b | Second vector. |
- Returns
- The kernel evaluation between the two vectors.
◆ Evaluate() [2/2]
double mlpack::kernel::SphericalKernel::Evaluate |
( |
const double |
t | ) |
const |
|
inline |
Evaluate the kernel when only a distance is given, not two points.
- Parameters
-
The documentation for this class was generated from the following file: