VECTOR_NORMALIZE
functionsupportedAI & MLNormalizes 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
| Name | Required | Description |
|---|---|---|
vector | required | A single VECTOR value to normalize. |
Returns
Returns a VECTOR normalized to the L2 space, with values of type FLOAT.
Usage notes
- Returns NULL when the input is NULL.
- Vector functions are optimized in a way that can reduce floating point precision. This function’s results have a margin of error up to 1e-4.