Learn R Programming

SPOT (version 2.11.10)

code2nat: 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

Run this code
# NOT RUN {
x <- matrix(runif(10),2)
a <- c(-1,1,2,3,4)
b <- c(1,2,3,4,5)
R <- code2nat(x,a,b)

# }

Run the code above in your browser using DataLab