Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CosineDistance ¶
CosineDistance calculates the cosine distance between two vectors. The cosine distance is defined as 1 - (dot product of a and b) / (magnitude of a * magnitude of b). The result is in the range [0, 2], where 0 means the vectors are identical and 2 means they are opposite.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.