un_normalize: un_normalize

Description Usage Arguments Details Value

View source: R/snnR.R

Description

Internal function for going back to the original scale.

Usage

1
   un_normalize(z,base,spread)

Arguments

z

a vector or matrix with values are normalized between -1 and 1, this vector is obtained when normalizing a vector or matrix x.

base

if z is a vector, base is the minimum of x. if x is a matrix, base is a vector with the minimum for each of the columns of the matrix x.

spread

if z is a vector, spread=base-max(x). If x is a matrix, spread is a vector calculated for each of the columns of x.

Details

x=base+0.5*spread*(z+1)

Value

A vector or matrix with the resulting un normalized values.


snnR documentation built on May 2, 2019, 8:54 a.m.

Related to un_normalize in snnR...