class="resources" Scale 1D (Not in Base Package) - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Scale 1D (Not in Base Package)

Determines scale and offset and then scales the input array X using these values. Details  

X consists of the input array.
Y=(X-offset)/scale is the output array.
scale is the scaling factor.
offset is the offset factor.
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.

Scale 1D Details

The VI calculates the output array Y=(X-offset)/scale using the following equations.

scale = 0.5(max – min)

offset = min + scale

where max denotes the maximum value in X and min denotes the minimum value in X.

The following equation defines each element of Y.

Y[i] = (X[i] – offset)/scale

You can use this VI to normalize any numerical sequence with the assurance that the range of the output sequence is [–1:1].


Resources


 

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