| phi_inv | R Documentation |
This function reverses the min-max normalization applied by phi.
It reconstructs the original scale of the data given a normalized matrix
and the stored attributes "min_X" and "max_X".
phi_inv(t)
t |
A normalized numeric matrix produced by |
A numeric matrix with the same dimensions as t, rescaled back to the original values.
# Normalize and then invert
X <- matrix(c(1, 2, 3, 4, 5, 6), ncol = 2)
X_norm <- phi(X)
X_recovered <- phi_inv(X_norm)
all.equal(X, X_recovered)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.