def linear_interp_pt(x_target, x0, x1, y0, y1):
    """Convenience function to compute an interpolated linear value between
    two points.

    Parameters
    ----------
    x_target : float
    x0 : float
    x1 : float
    y0 : float
    y1 : float

    Returns
    -------
    float
        Interpolated value.
    """
    coeff = (y1 - y0) / (x1 - x0)
    dist = x_target - x0
    y_target = y0 + coeff * dist
    return y_target