metric

package
v0.0.102 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CosineDistance

func CosineDistance(a, b []float32) float32

CosineDistance calculates the cosine distance between two float32 slices.

func CosineSimilarity

func CosineSimilarity(a, b []float32) float32

CosineSimilarity calculates the cosine similarity between two float32 slices.

func Magnitude

func Magnitude(a []float32) float32

Magnitude calculates the magnitude (length) of a float32 slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL