prescale: Data preparation

Description Usage Arguments Value Author(s) See Also Examples

View source: R/prescale.R

Description

prescale scales data to be in the range {0,1}, as a preparation for simulation.

Usage

1
  prescale(xv)

Arguments

xv

unscaled data vector

Value

x

scaled data vector

Author(s)

A. Ferreira da Silva, Universidade Nova de Lisboa, Faculdade de Ciencias e Tecnologia,
[email protected].

See Also

dpmixsim, readsliceimg

Examples

1
2
3
4
5
6
7
## Not run: 
  data("galaxy")
  x0 <- galaxy$speed
  x  <- prescale(x0) 
  print(range(x))

## End(Not run)

dpmixsim documentation built on May 29, 2017, 11:04 p.m.

Related to prescale in dpmixsim...