pure

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ENABLED_COSINE = false
View Source
const ENABLED_EUCLIDEAN = false

Variables

This section is empty.

Functions

func CosineF32

func CosineF32(a, b []float32) (d float32)

Cosine distance between two vectors

func EuclideanF32

func EuclideanF32(a, b []float32) (d float32)

Squared Euclidean distance between two vectors

Types

type Cosine

type Cosine int

Type Class for Cosine distance

func (Cosine) Distance

func (Cosine) Distance(a, b []float32) float32

type Euclidean

type Euclidean int

Type Class for Euclidean distance

func (Euclidean) Distance

func (Euclidean) Distance(a, b []float32) float32

Jump to

Keyboard shortcuts

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