piecenorm {piecenorms} | R Documentation |
Get piecewse normalised values from a vector of observations
piecenorm(obs, breaks, polarity = 1)
obs |
A vector of observations. |
breaks |
The breaks to normalise to. |
polarity |
Which direction should the normalisation occur. |
Vector of normalised observations
obs <- exp(1:10)
breaks <- c(min(obs), 8, 20, 100, 1000, 25000)
y <- piecenorm(obs, breaks)
plot(obs, y, type = 'l',
xlab = "Original Values",
ylab = "Normalised Values")