Finds the norm of the Input Vector and obtains its corresponding Unit Vector by normalizing the original Input Vector with its norm.


icon

This VI calculates norm using the following equations.

1-norm ||X|| = |x0| + |x1| + … + |xn – 1|
2-norm ||X|| = √(|x0|² + |x1|² + … + |xn – 1|²)
Inf-norm ||X|| = maxi(|xi|)
–Inf-norm ||X|| = mini(|xi|)
User Defined ||X|| = ||x0|y + |x1|y + … + |xn – 1|y|1/y

where X is Input Vector, y is user defined norm, and ||X|| is norm.

This VI calculates Unit Vector using the following equation:

where U is Unit Vector.