CLUEstering
High-performance density-based weighted clustering library developed at CERN
|
The FlatKernel class implements a flat kernel for convolution. It returns a constant value for the kernel, regardless of the distance between points. More...
#include <ConvolutionalKernel.hpp>
Public Member Functions | |
FlatKernel (float flat) | |
Construct a FlatKernel object. | |
template<typename TAcc> | |
ALPAKA_FN_HOST_ACC float | operator() (const TAcc &, float, int point_id, int j) const |
Computes the kernel value between two points. | |
The FlatKernel class implements a flat kernel for convolution. It returns a constant value for the kernel, regardless of the distance between points.
clue::FlatKernel::FlatKernel | ( | float | flat | ) |
Construct a FlatKernel object.
flat | The flat value for the kernel |
ALPAKA_FN_HOST_ACC float clue::FlatKernel::operator() | ( | const TAcc & | , |
float | , | ||
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 |