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

vnormalize

Contents

Brief Information

Normalize the input vector

Command Line Usage

  1. vnormalize ix:=Col(1) method:=range;
  2. vnormalize ix:=Col(1) method:=specify val:=10;
  3. vnormalize ix:=Col(1) method:=means ox:=<new>;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input ix

Input

vector

<active>

Specify the input vector data.

Total Data Info datainfo

Input

TreeNode

<unassigned>

This is for displaying the data infomation in the dialog.

Normalize Methods method

Input

int

range

Specify the method used to normalize the data.
Option list

  • Specify:Divided by a specified value
    Divide the vector by a value specified by the val variable.
  • Range:Normalize to [0, 1]
    Normalize data to the range [0, 1].
  • SND:Transfer to N(0, 1)
    Transform to standard normal distribution.
  • Max:Divided by Max
    Divide the vector by the maximum value.
  • Min:Divided by Min
    Divide the vector by the minimum value.
  • Mean:Divided by Mean
    Divide the vector by the mean.
  • Median:Divided by Median
    Divide the vector by the median.
  • SD:Divided by SD
    Divide the vector by the standard deviation.
  • Norm:Divided by Norm
    Divide the vector by the Norm.
  • Mode:Divided by Mode
    Divide the vector by the mode. Here, mode is the element that appears most often in the vector.
  • sum:Divided by Sum
    Divide the vector by the sum.
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 vector.

Output ox

Output

vector

<input>

Specify the output for the normalized vector.

Description

This function performs normalization to a vector.

Examples

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>;

Algorithm

Suppose V is the input vector, and α is a user defined value, the normalized vector, Image:vnormalize_help_English_files_image002.gif can be computated as follows:

Divided by a specific value

Image:vnormalize_help_English_files_image004.gif

normalize to [0, 1]:

Image:vnormalize_help_English_files_image006.gif

Transfer to N(0, 1):

Image:vnormalize_help_English_files_image008.gif

Divided by Max:

Image:vnormalize_help_English_files_image010.gif

Divided by Min:

Image:vnormalize_help_English_files_image012.gif

Divided by Mean:

Image:vnormalize_help_English_files_image014.gif

Divided by Median:

Image:vnormalize_help_English_files_image016.gif

Divided by Standard Derivation:

Image:vnormalize_help_English_files_image018.gif

Divided by Norm:

Image:vnormalize_help_English_files_image020.gif

Divided by Mode (the element that appears most often in the input vector):

Image:vnormalize_help_English_files_image022.gif

Divided by Sum:

Image:vnormalize_help_English_files_image024.png

Related X-Functions

normalize, Rnormalize, Cnormalize