setDomain: setDomain

Description Usage Arguments Value Author(s) Examples

View source: R/Rutils.R

Description

performs linear rescaling of given data.

Usage

1
setDomain(dat, span = 10, oldspan = NULL)

Arguments

dat

data to rescale. matrix object, with elements as rows, and variables as columns (i.e. variables are rescaled).

span

new domain to which dat is rescaled. If type is numeric and length = 1: [-span, span] is used for all variables. If type is numeric and length = 2: [span[1], span[2]] is used for all variables. If a list object: [span[[1]]_i, span[[2]]_i] is used for each variable i.

oldspan

if NULL, old domains are computed from dat inspection. Otherwise, is structured as span and replaces inspected values for rescaling.

Value

scaled data matrix.

Author(s)

Pierrick Bruneau

Examples

1
temp <- setDomain(irisdata, span=15)

VBmix documentation built on May 20, 2017, 12:34 a.m.

Search within the VBmix package
Search all R packages, documentation and source code