code2nat: Transform coded values to natural values

View source: R/spotTools.R

code2natR Documentation

Transform coded values to natural values

Description

Input values from the interval from zero to one, i.e., normalized values, are mapped to the interval from a to b.

Usage

code2nat(x, a, b)

Arguments

x

matrix of m n-dimensional input values from the interval [0;1], i.e, dim(x) = m x n

a

vector of n-dimensional lower bound, i.e., length(a) = n

b

vector of n-dimensional upper bound, i.e., length(b) = n

Examples

x <- matrix(runif(10),2)
a <- c(-1,1,2,3,4)
b <- c(1,2,3,4,5)
R <- code2nat(x,a,b)


SPOT documentation built on June 26, 2022, 1:06 a.m.