Table of Contents

Enum SqlFn.DistanceMetric

Namespace
LinqToDB.DataProvider.SqlServer
Assembly
linq2db.dll

A string with the name of the distance metric to use to calculate the distance between the two given vectors.

public enum SqlFn.DistanceMetric
Extension Methods

Fields

Cosine = 0

Cosine (angular) distance.

0identical vectors
2opposing vectors
Dot = 2

Dot product-based indication of distance, obtained by calculating the negative dot product.

Smaller numbers indicate more similar vectors
Euclidean = 1

Euclidean distance.

0identical vectors