https://github.com/cran/fields
Raw File
Tip revision: c8904131c3352e1d3ff03bb5c07f5434648cc406 authored by Doug Nychka on 17 November 2011, 11:25:44 UTC
version 6.6.2
Tip revision: c890413
unscale.R
# fields, Tools for spatial data
# Copyright 2004-2011, 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
}
back to top