R/transform.R

Defines functions Transform

Transform<-function(x)            # transformation to [-1,1]
{
  a<-min(x)
  b<-max(x)
  xc<-(2*x-(a+b))/(b-a)
  return (xc)
}

Try the MOODE package in your browser

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

MOODE documentation built on Aug. 19, 2025, 1:11 a.m.