normalizeQuantile.numeric {aroma.light} | R Documentation |
Normalizes the empirical distribution of a single sample to a target distribution.
## S3 method for class 'numeric': normalizeQuantile(x, xTarget, ties=FALSE, ...)
x |
a numeric vector of length N. |
xTarget |
a numeric vector of length M. |
ties |
Should ties in x be treated with care or not?
For more details, see "limma:normalizeQuantiles". |
... |
Not used. |
Returns a numeric
vector
of length N.
It is only the empirical distribution of the non-missing values that is
normalized to the target distribution. All NA
values remain NA
after
normalization. No new NA
s are introduced.
Adopted from Gordon Smyth (http://www.statsci.org/) in 2002 & 2006. Original code by Ben Bolstad at Statistics Department, University of California.
To calculate a target distribution from a set of samples, see
*getAverageQuantile()
.
This method is used by normalizeQuantile.list
().