vic/vic_run/src/interpoloation.c
double
linear_interp(double x,
              double lx,
              double ux,
              double ly,
              double uy)
{
    return((x - lx) / (ux - lx) * (uy - ly) + ly);
}
/******************************************************************************
 * @brief    This routine performs a linear interpolation
 *****************************************************************************/
@brief    This routine performs a linear interpolation
@brief This routine performs a linear interpolation
double
linear_interp(double x,
              double lx,
              double ux,
              double ly,
              double uy)
{
    return((x - lx) / (ux - lx) * (uy - ly) + ly);
}
double linear_interp ( double x , double lx , double ux , double ly , double uy ) { return ( ( x - lx ) / ( ux - lx ) * ( uy - ly ) + ly ) ; }
@brief    This routine performs a linear interpolation
@brief This routine performs a linear interpolation