code2nat: Transform coded values to natural values

Description Usage Arguments Examples

View source: R/spotTools.R

Description

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

Usage

1
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

1
2
3
4
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 Oct. 23, 2021, 1:06 a.m.