Vector Normalization

Vector Normalization

By Juan Garcia

-

18-Apr-2024

Introduction


Vector normalization is an essential operation in many areas of mathematics, science, and engineering. This operation scales the original vector to a unit vector, which maintains the original vector's direction but sets its length to 1. This post will provide an overview of vector normalization, focusing on p-norms.



Applications


Normalization Definition


The normalization of a vector is calculated by dividing each element of the vector by the vector's norm. This process creates a unit vector that has the same direction as the original vector but a length (norm) of 1.


Normalization with p-norm


For a given vector v, the normalized version v' in terms of a p-norm is given by:

\[ v' = \frac{v}{\|v\|_p} \]

Here, \|v\|_p denotes the p-norm of the vector v. The value of p determines the type of normalization. For example, p=2 leads to normalization in terms of Euclidean distance, and p=1 results in normalization in terms of Manhattan distance.



References


Stay Ahead with Algothingy

algothingy mascot coding

Wanna download quality software?

algothingy mascot talking to another mascot

Can't find what you are looking for?

Don't worry we have you covered. Tell us about your software needs here. We will get back to you with ways we can help!

Stay up to date with us

Follow us on LinkedIn to receive news about our latest implementations.

Code versions

Go ahead and send us your request!

Log In required

Modal message

Snackbar message