vectorizer

package
v1.25.16 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineVectors

func CombineVectors(vectors [][]float32) []float32

CombineVectors combines all of the vector into sum of their parts

func CombineVectorsWithWeights

func CombineVectorsWithWeights(vectors [][]float32, weights []float32) []float32

func NormalizedDistance

func NormalizedDistance(a, b []float32) (float32, error)

NormalizedDistance between two arbitrary vectors, errors if dimensions don't match, will return results between 0 (no distance) and 1 (maximum distance)

Types

This section is empty.

Jump to

Keyboard shortcuts

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