def linear_interpolation(first, last, steps):
    """Interpolates all missing values using linear interpolation.

    :param numeric first:    Start value for the interpolation.
    :param numeric last:    End Value for the interpolation
    :param integer steps:    Number of missing values that have to be calculated.

    :return:    Returns a list of floats containing only the missing values.
    :rtype: list

    :todo:     Define a more general interface!
    """
    result = []

    for step in xrange(0, steps):
        fpart = (steps - step) * first
        lpart = (step + 1)            * last
        value = (fpart + lpart) / float(steps + 1)
        result.append(value)

    return result
dataset/ETHPy150Open T-002/pycast/pycast/common/helper.py/linear_interpolation/original