Analysis : Mathematics : Normalize Columns
Right click column: Normalize
Normalize a range of XY data
Minimum Origin Version Required: 8.1 SR0
1. rnormalize irng:=2:4 method:=min;
2. rnormalize irng:=Col(B) method:=specify val:=7 orng:=<new>;
3. rnormalize irng:=2:4 method:=ref type:=max refcol:=5 orng:=<new>;
4. rnormalize irng:=2:4 method:=cell cell:=1[10] orng:=<new>;
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 | irng |
Input Range |
|
Specify the input columns or range. Note that beginning with Origin 2020b, there is a shortened syntax that follows the form [Book]Sheet!(N1:N2), N1 = the beginning column index and N2 being the ending column index in a contiguous range of columns. More complex strings from non-contiguous data of the form [Book]Sheet!([Book]Sheet!N1:N2,[Book]Sheet!N3:N4) are also possible. |
Total 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. |
Treat Input as One Composite Dataset | composite |
Input int |
|
Specify whether to treat selection as one composite dataset. This variable is not available when method is set to specify or cell. |
Group | group |
Input int |
|
Specify column or columns as group info so the normalization will be done for each unique group. |
Normalize Methods | method |
Input int |
|
Method used to normalize
Option list:
|
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 reference single column. |
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 to divide the input data. |
v1 | v1 |
Input double |
|
This variable is available only when method is set to Normalize to [v1, v2] (method:=customrange). It specifies the minimum for range of values v1 to v2. |
v2 | v2 |
Input double |
|
This variable is available only when method is set to Normalize to [v1, v2] (method:=customrange). It specifies the maximum for range of values v1 to v2. |
Output | orng |
Output Range |
|
Specify the output for the normalized columns.
See the syntax here. |
This function adjusts column(s) or part of the column(s) to specific "standard" level. It treats each selected column indepently and normalizes all the columns one by one.
The following script will show you an example of normalizing two sets of data according to a third dataset.
string fn$=system.path.program$ + "\Samples\Curve Fitting\Exponential Decay.dat "; impASC fname:=fn$; rnormalize irng:=3:4 method:=ref refcol:=2 orng:=<new>;
Suppose V is the V 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]:
Normalize to [v1, v2]:
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: