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.


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

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



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

Detailed Description

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 for more information.

Definition in file cosine_distance.hpp.