cosine_distance.hpp File Reference
Include dependency graph for cosine_distance.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CosineDistance
 The cosine distance (or cosine similarity). More...

 
class  KernelTraits< CosineDistance >
 Kernel traits for the cosine distance. More...

 

Namespaces

 mlpack
 
Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::kernel
 
Kernel functions.
 

Detailed Description

Author
Ryan Curtin

This implements the cosine distance (or cosine similarity) between two vectors, which is a measure of the angle between the two vectors.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file cosine_distance.hpp.