def linear_function(x, a, b):
    """ Equation for a line.

    Parameters:
        x: array
            The independet variable where the data is measured.

        a: float
            The linear coefficient.

        b: float
            The angular coefficient.

    Returns:
        f: array
            The linear function.
    """
    f = a+b*x
    return f