OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

normalize

Contents

Brief Information

Normalize the input data

Command Line Usage

  1. normalize iy:=Col(2) method:=range;
  2. normalize iy:=Col(2) method:=specify val:=10;
  3. 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 X-Function 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.
User-Defined 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, Image:normalize_help_English_files_image002.gifcan be calculated as follows:

Divided by a specific value:Image:normalize_help_English_files_image004.gif

Normalize to [0, 1]:Image:normalize_help_English_files_image006.gif

Normalize to [0, 100]:

Transfer to N(0, 1):Image:normalize_help_English_files_image008.gif

Divided by Max:Image:normalize_help_English_files_image010.gif

Divided by Min:Image:normalize_help_English_files_image012.gif

Divided by Mean:Image:normalize_help_English_files_image014.gif

Divided by Median:Image:normalize_help_English_files_image016.gif

Divided by Standard Derivation:Image:normalize_help_English_files_image018.gif

Divided by Norm:Image:normalize_help_English_files_image020.gif

Divided by Mode:Image:normalize_help_English_files_image022.gif

Divided by Sum:Image:cnormalize_help_English_files_image024.png

Related X-Functions

vnormalize, Rnormalize, Cnormalize