mlpack 3.4.2
Static Public Attributes | List of all members
KernelTraits< CosineDistance > Class Reference

Kernel traits for the cosine distance. More...

#include <cosine_distance.hpp>

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

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: