rescale: Rescale a Vector or a Matrix to the Specified Limits

Description Usage Arguments See Also Examples

Description

Linear scales a vector or matrix to the specified range.

Usage

1
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

1
2
rescale(1:10,c(-3,-5))
rescale(-1:4, c(0,1), 1:3, 0:1)

zeehio/msProcess documentation built on May 4, 2019, 10:15 p.m.