mlpack  master
Static Public Attributes | List of all members
mlpack::kernel::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

const bool mlpack::kernel::KernelTraits< CosineDistance >::IsNormalized = true
static

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

Definition at line 55 of file cosine_distance.hpp.

const bool mlpack::kernel::KernelTraits< CosineDistance >::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: