Snv: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Standard Normal Variate scaling. | Standard Normal Variate scaling. | ||
===Synopsis=== | ===Synopsis=== | ||
:[xcorr,mns,sds] = snv(x,''options''); %perform snv scaling | :[xcorr,mns,sds] = snv(x,''options''); %perform snv scaling | ||
:x = snv(xcorr,''mns,sds''); %undo snv | :x = snv(xcorr,''mns,sds''); %undo snv | ||
===Description=== | ===Description=== | ||
Scales rows of the input x to be mean zero and unit standard deviation. This is the same as autoscaling the transpose of x. | Scales rows of the input x to be mean zero and unit standard deviation. This is the same as autoscaling the transpose of x. | ||
====INPUTS==== | ====INPUTS==== | ||
* '''x''' = ''M'' by ''N'' matrix of data to be scaled (class "double" or "dataset"). | * '''x''' = ''M'' by ''N'' matrix of data to be scaled (class "double" or "dataset"). | ||
====OPTIONAL INPUTS==== | ====OPTIONAL INPUTS==== | ||
* '''options''' = options structure passed to function "auto" when performing SNV scaling. See auto.m for available options (not valid for undo operation). | * '''options''' = options structure passed to function "auto" when performing SNV scaling. See auto.m for available options (not valid for undo operation). | ||
* '''''mns''''' = a vector of length ''M'' of means, and | * '''''mns''''' = a vector of length ''M'' of means, and | ||
* '''''sds''''' = vector of length ''M'' of standard deviations. | * '''''sds''''' = vector of length ''M'' of standard deviations. | ||
====OUTPUTS==== | ====OUTPUTS==== | ||
* '''xcorr''' = the scaled data (xcorr will be the same class as x), | * '''xcorr''' = the scaled data (xcorr will be the same class as x), | ||
* '''mns''' = vector of means for each row, and | * '''mns''' = vector of means for each row, and | ||
* '''sds''' = vector of standard deviations for each row. | * '''sds''' = vector of standard deviations for each row. | ||
To rescale or "undo" SNV, inputs are xcorr, mns, and sds from a previous SNV call. The output will be the original x. | To rescale or "undo" SNV, inputs are xcorr, mns, and sds from a previous SNV call. The output will be the original x. | ||
===See Also=== | ===See Also=== | ||
[[auto]], [[normaliz]], [[preprocess]] | [[auto]], [[normaliz]], [[preprocess]] |
Revision as of 14:27, 3 September 2008
Purpose
Standard Normal Variate scaling.
Synopsis
- [xcorr,mns,sds] = snv(x,options); %perform snv scaling
- x = snv(xcorr,mns,sds); %undo snv
Description
Scales rows of the input x to be mean zero and unit standard deviation. This is the same as autoscaling the transpose of x.
INPUTS
- x = M by N matrix of data to be scaled (class "double" or "dataset").
OPTIONAL INPUTS
- options = options structure passed to function "auto" when performing SNV scaling. See auto.m for available options (not valid for undo operation).
- mns = a vector of length M of means, and
- sds = vector of length M of standard deviations.
OUTPUTS
- xcorr = the scaled data (xcorr will be the same class as x),
- mns = vector of means for each row, and
- sds = vector of standard deviations for each row.
To rescale or "undo" SNV, inputs are xcorr, mns, and sds from a previous SNV call. The output will be the original x.