R/RESCALE.R

Defines functions `RESCALE`

`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 Aug. 21, 2023, 9:09 a.m.