CLUEstering
High-performance density-based weighted clustering library developed at CERN
Loading...
Searching...
No Matches
clue::FlatKernel Class Reference

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.
 

Detailed Description

The FlatKernel class implements a flat kernel for convolution. It returns a constant value for the kernel, regardless of the distance between points.

Constructor & Destructor Documentation

◆ FlatKernel()

clue::FlatKernel::FlatKernel ( float flat)

Construct a FlatKernel object.

Parameters
flatThe flat value for the kernel

Member Function Documentation

◆ operator()()

template<typename TAcc>
ALPAKA_FN_HOST_ACC float clue::FlatKernel::operator() ( const TAcc & ,
float ,
int point_id,
int j ) const

Computes the kernel value between two points.

Parameters
accThe accelerator to use for the computation
dist_ijThe distance between the two points
point_idThe index of the first point
jThe index of the second point
Returns
The computed kernel value

The documentation for this class was generated from the following file: