Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Vector Norm (Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Computes the norm of Input Vector. The data type you wire to the Input Vector input determines the polymorphic instance to use.

Note  You can use the Matrix Norm VI to calculate the matrix norm.

Details  

Use the pull-down menu to select an instance of this VI.

Real Vector Norm

Input Vector is the real input vector. If Input Vector is an empty array, this VI sets norm to NaN.
norm type indicates what type of norm you use to compute the norm. The default is 2-norm. If norm type is User Defined, this VI uses user defined norm as the norm type.

11-norm
22-norm (default)
3Inf-norm
4–Inf-norm
5User Defined
user defined norm is the user defined norm type. The default is –1. This VI uses user defined norm as the norm type only if you set norm type to User Defined. user defined norm must be nonzero.
norm is the norm of Input Vector.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Complex Vector Norm

Input Vector is the complex input vector. If Input Vector is an empty array, this VI sets norm to NaN.
norm type indicates what type of norm you use to compute the norm. The default is 2-norm. If norm type is User Defined, this VI uses user defined norm as the norm type.

11-norm
22-norm (default)
3Inf-norm
4–Inf-norm
5User Defined
user defined norm is the user defined norm type. The default is –1. This VI uses user defined norm as the norm type only if you set norm type to User Defined. user defined norm must be nonzero.
norm is the norm of Input Vector.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Vector Norm Details

This VI calculates norm using the following equations.

1-norm ||X|| = |x0| + |x1| + … + |xn – 1|
2-norm ||X|| = √(|x0|2 + |x1|2 + … + |xn – 1|2)
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.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit