phi_inv: Inverse Min-Max Normalization

View source: R/utils.R

phi_invR Documentation

Inverse Min-Max Normalization

Description

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".

Usage

phi_inv(t)

Arguments

t

A normalized numeric matrix produced by phi, containing attributes "min_X" and "max_X".

Value

A numeric matrix with the same dimensions as t, rescaled back to the original values.

Examples

# 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)


PLUCR documentation built on March 30, 2026, 5:08 p.m.