COSINE_DISTANCE
COSINE_DISTANCE is a shorthand version of the VECTOR_DISTANCE function that calculates the cosine distance between two vectors. It takes two vectors as input and returns the distance between them as a BINARY_DOUBLE.
Syntax

Description of the illustration cosine_distance.gif
Parameters
-
expr1andexpr2must evaluate to vectors that have the same format and number of dimensions. -
COSINE_DISTANCEreturns NULL, if eitherexpr1orexpr2is NULL.