code: func Rescale(input, fromMin, fromMax, toMin, toMax float64) float64 {
  	return (input-fromMin)*(toMax-toMin)/(fromMax-fromMin) + toMin
  }
docs: // Rescale performs a direct linear rescaling of a number from one scale to another.