https://github.com/cran/fields
Tip revision: e41cdb90fbcc54695ce1724284e5b3f3abcf643a authored by Doug Nychka on 21 October 2008, 16:58:57 UTC
version 5.01
version 5.01
Tip revision: e41cdb9
unscale.R
# fields, Tools for spatial data
# Copyright 2004-2007, Institute for Mathematics Applied Geosciences
# University Corporation for Atmospheric Research
# Licensed under the GPL -- www.gpl.org/licenses/gpl.html
"unscale" <-
function (x, x.center, x.scale)
{
x <- scale(x, center = FALSE, scale = 1/x.scale)
x <- scale(x, center = -x.center, scale = FALSE)
x
}