From Eigenvector Research Documentation Wiki
(Difference between pages)
Jump to navigation
Jump to search
imported>Lyle |
|
Line 1: |
Line 1: |
| ===Purpose===
| |
|
| |
|
| Min-Max scaling
| |
|
| |
| ===Synopsis===
| |
|
| |
| :[xcorr,mins,maxs] = minmax(x,''options''); %perform min-max scaling
| |
|
| |
| ===Description===
| |
|
| |
| Scales rows (or columns) of the input <tt>x</tt> 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===
| |
|
| |
| [[auto]], [[normaliz]], [[preprocess]], [[snv]]
| |
Latest revision as of 11:44, 1 August 2019