def lin_interp(x: float, x_l: float, x_h: float, y_l: float, y_h: float) -> float:
    """
    Simple linear interpolation.

    :param x: independent input variable
    :param x_l: low independent interval bound
    :param x_h: high independent interval bound
    :param y_l: low dependent interval bound
    :param y_h: high dependent interval bound
    :return: interpolated value
    """

    return (x - x_l) / (x_h - x_l) * (y_h - y_l) + y_l