.normalise: Normalise a vector
Description
Similar to base::scale() but returning a vector with class attribute.
Used for safe prediction
Usage
.normalise(x, location, scale)
Value
A normalised vector inheriting from class "normalise"
Arguments
- x
A numeric vector
- location
A numeric vector of length 1
- scale
A numeric vector of length 1, usually positive