Learn R Programming

dpmixsim (version 0.0-9)

prescale: Data preparation

Description

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

Usage

prescale(xv)

Arguments

xv

unscaled data vector

Value

x

scaled data vector

See Also

dpmixsim, readsliceimg

Examples

Run this code
# NOT RUN {
  data("galaxy")
  x0 <- galaxy$speed
  x  <- prescale(x0) 
  print(range(x))
# }

Run the code above in your browser using DataLab