VECTOR_NORMALIZE

functionsupportedAI & ML

docs.snowflake.com ↗

Vector functions

Normalizes a VECTOR in the L2 vector space, giving its elements values in the range of [0,1] and giving it a magnitude of 1.

Syntax

VECTOR_NORMALIZE( <vector> )

Parameters

NameRequiredDescription
vectorrequiredA single VECTOR value to normalize.

Returns

Returns a VECTOR normalized to the L2 space, with values of type FLOAT.

Usage notes

See also

Referenced by