CLUEstering
High-performance density-based weighted clustering library developed at CERN
|
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. More...
#include <ConvolutionalKernel.hpp>
Public Member Functions | |
GaussianKernel (float gaus_avg, float gaus_std, float gaus_amplitude) | |
Construct a GaussianKernel object. | |
template<typename TAcc> | |
ALPAKA_FN_HOST_ACC float | operator() (const TAcc &acc, float dist_ij, int point_id, int j) const |
Computes the kernel value between two points. | |
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.
clue::GaussianKernel::GaussianKernel | ( | float | gaus_avg, |
float | gaus_std, | ||
float | gaus_amplitude ) |
Construct a GaussianKernel object.
gaus_avg | The average value for the Gaussian kernel |
gaus_std | The standard deviation for the Gaussian kernel |
gaus_amplitude | The amplitude for the Gaussian kernel |
ALPAKA_FN_HOST_ACC float clue::GaussianKernel::operator() | ( | const TAcc & | acc, |
float | dist_ij, | ||
int | point_id, | ||
int | j ) const |
Computes the kernel value between two points.
acc | The accelerator to use for the computation |
dist_ij | The distance between the two points |
point_id | The index of the first point |
j | The index of the second point |