SoftadminUtil.Vector_CosineDistance

Not available in Cloud edition.
Type: Scalar function

Calculates the cosine distance between two vectors.

This is intended to be used with the binary representation of vectors, see SoftadminUtil.Vector_ToBinary. Databases that have access to the vector data type should use the built in cosine distance function VECTOR_DISTANCE, or VECTOR_SEARCH.

Return value: float(24)

The cosine distance between the vectors.

Parameters

@A mandatory varbinary
A vector.
@B mandatory varbinary
A vector.