# VectorDistanceMetric

enum VectorDistanceMetric : Enum<VectorDistanceMetric>

The underlying mathematical formula to use when building an SQL vector distance function, to determine how similar or dissimilar vectors are.

## Entries

COSINE
Link copied to clipboard
COSINE

Measures the cosine of the angle between two vectors.

EUCLIDEAN
Link copied to clipboard
EUCLIDEAN

Measures the straight-line distance between two vectors, using the Pythagorean theorem applied to their coordinates.

DOT
Link copied to clipboard
DOT

Measures the sum of the products of corresponding coordinates between two vectors.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<VectorDistanceMetric>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): VectorDistanceMetric

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
fun values(): Array<VectorDistanceMetric>

Returns an array containing the constants of this enum type, in the order they're declared.