This function returns a vector of values that have been mapped from the interval [a,b]
to the interval [u.v].
Usage
scaleX(x, a = min(x, na.rm = TRUE), b = max(x, na.rm = TRUE), u, v)
Value
A vector of transformed values with four attributes. The first attribute is called "a" and
it is the domain interval lower bound. The second attribute is called "b" and
it is the domain interval upper bound. The third attribute is called "u" and
it is the target interval lower bound. The fourth attribute is called
"v" and it is the target interval upper bound.
Arguments
x
A numerical vector of values to be mapped into a target interval
a
A numerical lower bound for the domain interval with min(x) as the default value
b
A numerical upper bound for the domain interval with max(x) as the default value
Target lower and/or upper bounds can be \(-\infty\) and \(\infty\), respectively. This accomodates
finite target intervals, semi-infinite target intervals and infinite target intervals.
References
Seber, G. A. F. (1997) Linear Regression Analysis, New York.