Normalize a vector
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 | ix |
Input vector |
|
Specify the input vector data or column. |
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 used to normalize the 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 vector. |
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. |
Output | ox |
Output vector |
|
Specify the output for the normalized vector. |
This function performs normalization to a vector.
To normalize the second column by dividing the mean, and output result to a new column, type the following in the Command Window:
vnormalize ix:=Col(4) method:=Mean ox:=<new>;
Suppose is the input vector, and
is a user defined value, the normalized vector,
can be computated as follows:
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: