KernelTraits< CosineDistance > Class Template Reference

Kernel traits for the cosine distance. More...

Static Public Attributes

static const bool IsNormalized = true
 The cosine kernel is normalized: K(x, x) = 1 for all x. More...

 
static const bool UsesSquaredDistance = false
 The cosine kernel doesn't include a squared distance. More...

 

Detailed Description


template
<
>

class mlpack::kernel::KernelTraits< CosineDistance >

Kernel traits for the cosine distance.

Definition at line 51 of file cosine_distance.hpp.

Member Data Documentation

◆ IsNormalized

const bool IsNormalized = true
static

The cosine kernel is normalized: K(x, x) = 1 for all x.

Definition at line 55 of file cosine_distance.hpp.

◆ UsesSquaredDistance

const bool UsesSquaredDistance = false
static

The cosine kernel doesn't include a squared distance.

Definition at line 58 of file cosine_distance.hpp.


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.3.2/src/mlpack/core/kernels/cosine_distance.hpp