eccpy/tools.py
def residuals(constants, function, x, y):
    """
    Function used to optimise the fit of the curve to the data.
    It calculates the distance between y-value from real data and y-value from the function (sigmoid/sine/etc).
    """
    return y - function(constants, x)

    Function used to optimise the fit of the curve to the data.
    It calculates the distance between y-value from real data and y-value from the function (sigmoid/sine/etc).
    
Function used to optimise the fit of the curve to the data.
It calculates the distance between y-value from real data and y-value from the function (sigmoid/sine/etc).
Function used to optimise the fit of the curve to the data . It calculates the distance between y - value from real data and y - value from the function ( sigmoid / sine / etc ) .
def residuals(constants, function, x, y):
    return y - function(constants, x)
def residuals ( constants , function , x , y ) : return y - function ( constants , x )
Function used to optimise the fit of the curve to the data.
Function used to optimise the fit of the curve to the data .
"""
    Function used to optimise the fit of the curve to the data.
    It calculates the distance between y-value from real data and y-value from the function (sigmoid/sine/etc).
    """
constants
function
x
y