R/calibrate.axis.R

calibrate.axis <-
function(x,max,min,scale=1){
  total <- abs(min- max)
  dist <- total/2
  offset <- (max+min)/2
  scaled <- ((x - offset)/dist)*scale  
  return(scaled)
}

Try the animalTrack package in your browser

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

animalTrack documentation built on May 2, 2019, 5:07 a.m.