R/RESCALE.R

`RESCALE` <-
function(x, nx1, nx2, minx, maxx)
{
  #    rescale a vector 
  nx = nx1+(nx2-nx1)*(x-minx)/(maxx-minx)
  return(nx)
}

Try the ClamR package in your browser

Any scripts or data that you put into this service are public.

ClamR documentation built on May 30, 2017, 4:48 a.m.