Normalize XY data or data plot in graph
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input | iy |
Input XYRange |
|
Specify the input curve or XYRange. |
Data Info | datainfo |
Input TreeNode |
|
This is for displaying the data information in the dialog. When you are using the X-Function by LabTalk, please do not use this variable. |
Normalize Methods | method |
Input int |
|
Specify the method to normalize the input data
|
User-Defined Value | val |
Input double |
|
This variable is available only when method is set to specify. It specifies the value used to divide the input data. |
Reference Column | refcol |
Input Column |
|
This variable is available only when method is set to ref. It specifies the single column used as reference. |
Normalize to | type |
Input Int |
|
This variable is available only when method is set to ref. It determines which statistical variable in reference column is used as the normalization match. After normalization, the chosen statistical variable of input column will match that of the reference column. Option list:
|
Reference Cell | cell |
Input Range |
|
This variable is available only when method is set to cell. It specifies the single cell used as reference. |
Output | oy |
Output XYRange |
|
Specify the output for the normalized data. See the syntax here. |
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.
Suppose Y is the y values of input data, and is a user defined value, the normalized data,
can be calculated as follows:
Divided by a specific value:
Normalize to [0, 1]:
Normalize to [0, 100]:
Z scores (standardize to N(0, 1)):
Divided by Max:
Divided by Min:
Divided by Mean:
Divided by Median:
Divided by Standard Derivation:
Divided by Norm:
is the n th
values.
Divided by Mode:
Divided by Sum: