Minmax: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Lyle
(Created page with "===Purpose=== Min-Max scaling ===Synopsis=== :[xcorr,mins,maxs] = minmax(x,''options''); %perform min-max scaling ===Description=== Scales rows (or columns) of the...")
 
imported>Lyle
No edit summary
Line 34: Line 34:
===See Also===
===See Also===


[[auto]], [[normaliz]], [[preprocess]], [[snv]]
[[normaliz]], [[preprocess]], [[snv]]

Revision as of 15:06, 20 November 2018

Purpose

Min-Max scaling

Synopsis

[xcorr,mins,maxs] = minmax(x,options); %perform min-max scaling

Description

Scales rows (or columns) of the input x to be have a minima of 0 and a maxima of 1.

Inputs

  • x = M by N matrix of data to be scaled (class "double" or "dataset").

Optional Inputs

  • options = Options structure. See details below.

options = a structure array with the following fields:

  • mode: [ 1 ] dimension of data on which to calculate the minima and maxima for scaling. 1 = over rows (to scale variables); 2 = over columns (to scale samples). Default is 1.

Outputs

  • xcorr = the scaled data (xcorr will be the same class as x)
  • mins = vector of minima for each row (or column)
  • maxs = vector of maxima for each row (or column)


See Also

normaliz, preprocess, snv