| rescale {msProcess} | R Documentation |
Rescale a Vector or a Matrix to the Specified Limits
Description
Linear scales a vector or matrix to the specified range.
Usage
rescale(x, range.=c(0,1), ...)
Arguments
x |
a vector as defined by isVectorAtomic, a signalSeries object,
or a matrix. |
... |
additional data to be rescaled. Each additional input is scaled
in the exact same way as the x input. This provides relative scaling functionality
to the user. |
range. |
a two-element numeric vector containing the upper and lower bounds
for the scaled data: Default: c(0,1). |
See Also
scale.
Examples
rescale(1:10,c(-3,-5))
rescale(-1:4, c(0,1), 1:3, 0:1)
[Package
msProcess version 1.0.4
Index]