metric

package
v0.0.2-0...-89ad3eb Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PositivelyRelated

func PositivelyRelated(metricType string) bool

PositivelyRelated return if metricType are "ip" or "IP"

Types

type MetricType

type MetricType = string

MetricType string.

const (
	// L2 represents Euclidean distance
	L2 MetricType = "L2"

	// IP represents inner product distance
	IP MetricType = "IP"

	// COSINE represents cosine distance
	COSINE MetricType = "COSINE"

	// HAMMING represents hamming distance
	HAMMING MetricType = "HAMMING"

	// JACCARD represents jaccard distance
	JACCARD MetricType = "JACCARD"

	// SUBSTRUCTURE represents substructure distance
	SUBSTRUCTURE MetricType = "SUBSTRUCTURE"

	// SUPERSTRUCTURE represents superstructure distance
	SUPERSTRUCTURE MetricType = "SUPERSTRUCTURE"
)

MetricType definitions

Jump to

Keyboard shortcuts

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