Determines scale and offset and then scales the input matrix, X, using these values. Details
![]() |
X is the 2D 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 condition from the VI. |
The 2D output array
Y = (X - offset)/scale
is given by
scale = 0.5(max - min)
and
offset = min + 0.5 scale
where max denotes the maximum value in X, and min denotes the minimum value in X. Each element of Y is given by
Y[i,j] = (X[i,j] 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].