Convolutional Kernels¶
Provides the kernel classes for the convolution done when computing the weighted density of the points.
- Authors
Simone Balducci, Felice Pantaleo, Marco Rovere, Wahid Redjeb, Aurora Perego, Francesco Giacomini
-
namespace clue¶
-
template<std::floating_point TData = float>
class ExponentialKernel¶ - #include <ConvolutionalKernel.hpp>
The ExponentialKernel class implements an exponential kernel for convolution. It computes the kernel value based on the exponential function, which is defined by its average and amplitude.
Public Functions¶
-
ExponentialKernel(value_type exp_avg, value_type exp_amplitude)¶
Construct an ExponentialKernel object.
- Parameters:¶
- value_type exp_avg¶
The average value for the exponential kernel
- value_type exp_amplitude¶
The amplitude for the exponential kernel
-
ExponentialKernel(value_type exp_avg, value_type exp_amplitude)¶
-
template<std::floating_point TData = float>
class FlatKernel¶ - #include <ConvolutionalKernel.hpp>
The FlatKernel class implements a flat kernel for convolution. It returns a constant value for the kernel, regardless of the distance between points.
Public Functions¶
-
FlatKernel(value_type flat)¶
Construct a FlatKernel object.
- Parameters:¶
- value_type flat¶
The flat value for the kernel
Private Members¶
-
value_type m_flat¶
-
FlatKernel(value_type flat)¶
-
template<std::floating_point TData = float>
class GaussianKernel¶ - #include <ConvolutionalKernel.hpp>
The GaussianKernel class implements a Gaussian kernel for convolution. It computes the kernel value based on the Gaussian function, which is defined by its average, standard deviation, and amplitude.
Public Functions¶
-
GaussianKernel(value_type gaus_avg, value_type gaus_std, value_type gaus_amplitude)¶
Construct a GaussianKernel object.
- Parameters:¶
- value_type gaus_avg¶
The average value for the Gaussian kernel
- value_type gaus_std¶
The standard deviation for the Gaussian kernel
- value_type gaus_amplitude¶
The amplitude for the Gaussian kernel
-
GaussianKernel(value_type gaus_avg, value_type gaus_std, value_type gaus_amplitude)¶
-
namespace concepts¶
-
template<std::floating_point TData = float>