Share via


DistanceFunction.CosineSimilarity Field

Definition

The cosine (angular) similarity between two vectors.

public const string CosineSimilarity;
val mutable CosineSimilarity : string
Public Const CosineSimilarity As String 

Field Value

Remarks

Measures only the angle between the two vectors, without taking into account the length of the vectors. ConsineSimilarity = 1 - CosineDistance. -1 means vectors are opposite. 0 means vectors are orthogonal. 1 means vectors are identical.

Applies to