On 11/25/19 12:31 PM, Machiel Kolstein wrote:
> Okay, I found some answer myself: use scipy.optimize.curve_fit
> However, I still find it strange that I have to define a gauss function
> myself instead of it being readily available. I did this:
>
> # Define model function to be used to fit to the
Okay, I found some answer myself: use scipy.optimize.curve_fit
However, I still find it strange that I have to define a gauss function myself
instead of it being readily available. I did this:
# Define model function to be used to fit to the data
def gauss(x, *p):
A, mu, sigma = p
retur