DistanceFunction.CosineSimilarity Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the function that measures the cosine (angular) similarity between two vectors.
public: System::String ^ CosineSimilarity;
public const string CosineSimilarity;
val mutable CosineSimilarity : string
Public Const CosineSimilarity As String
Field Value
Remarks
Cosine similarity 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.