CLUEstering
High-performance density-based weighted clustering library developed at CERN
|
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. More...
#include <ConvolutionalKernel.hpp>
Public Member Functions | |
ExponentialKernel (float exp_avg, float exp_amplitude) | |
Construct an ExponentialKernel 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 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.
clue::ExponentialKernel::ExponentialKernel | ( | float | exp_avg, |
float | exp_amplitude ) |
Construct an ExponentialKernel object.
exp_avg | The average value for the exponential kernel |
exp_amplitude | The amplitude for the exponential kernel |
ALPAKA_FN_HOST_ACC float clue::ExponentialKernel::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 |