normalize
Brief Information
Normalize the input data
Command Line Usage
 normalize iy:=Col(2) method:=range;
 normalize iy:=Col(2) method:=specify val:=10;
 normalize iy:=Col(2) method:=mean oy:=<new>;
Variables
Display Name
 Variable Name
 I/O and Type
 Default Value
 Description

Input
 iy

Input
XYRange
 <active>

Specify the input curve, which is in an XY range.

Data Info
 datainfo

Input
TreeNode
 <unassigned>

This is for displaying the data information in the dialog. When you are using the XFunction by LabTalk, please do not use this variable.

Normalize Methods
 method

Input
int
 range

Specify the method to normalize the input curve.
Option list
 Specify:Divided by a specified value {0}
 Divide the curve by a value specified by the val variable.
 Range:normalize to [0, 1] {1}
 Normalize curve to the range [0, 1]
 Range100:Normalize to [0, 100] {13}
 Normalize data to the range [0, 100]. (9.0 SR0)
 SND:Transfer to N(0, 1) {2}
 Transform the curve to the standard normal distribution.
 Max:Divided by Max {3}
 Divide the curve by the maximum Y value.
 Min:Divided by Min {4}
 Divide the curve by the minimum Y value.
 Mean:Divided by Mean {5}
 Divide the curve by the mean of the Y values.
 Median:Divided by Median {6}
 Divide the curve by the median of the Y values.
 SD:Divided by SD {7}
 Divide the curve by the standard deviation of the Y values.
 Norm:Divided by Norm {8}
 Divide the curve by the norm of the Y values.
 Mode:Divided by Mode {9}
 Divide the curve by the mode of the Y values. The mode is the element that appears most often in the dataset.
 sum:Divided by Sum {10}
 Divide the vector by the sum of the Y values.
 ref:Use Reference Column {11}
 Normalize the input data by matching the statistic specified by the type variable to that of a reference column specified by the refcol variable.
 cell:Divided by Reference Cell {12}
 Divide the input data using a reference cell specified by the cell variable.

UserDefined Value
 val

Input
double
 1.0

This variable is available only when method is set to specify. It specifies the value used to divide the input curve.

Output
 oy

Output
XYRange
 (<input>,<new>)

Specify the output for the normalized curve.
See the syntax here.

Examples
The following script will show you an example of normalizing a curve by dividing it by a user defined value.
string fn$=system.path.program$ + "\Samples\Curve Fitting\Exponential Decay.dat ";
impASC fname:=fn$;
normalize iy:=(1,2) method:=specify val:=5 oy:=<new>;
Then two columns are added to the input worksheet. One stores the x values and other stores the normalized y values.
Algorithm
Suppose Y is the y values of input curve, and α is a user defined value, the normalized curve, can be calculated as follows:
Divided by a specific value:
Normalize to [0, 1]:
Normalize to [0, 100]:
Transfer to N(0, 1):
Divided by Max:
Divided by Min:
Divided by Mean:
Divided by Median:
Divided by Standard Derivation:
Divided by Norm:
Divided by Mode:
Divided by Sum:
Related XFunctions
vnormalize, Rnormalize, Cnormalize