“”"

@. model(x, p) = (p[1] + p[2]*x) + (p[3]/(p[5]*√(2*π) ))*exp(-(x-p[4])^2/(2*p[5]^2))

end

“”"

I have to fit this data into a steppere line graph I have and I can’t figure out how to use LsqFit to integrate the data.

@. model(x, p) = (p[1] + p[2]*x) + (p[3]/(p[5]*√(2*π) ))*exp(-(x-p[4])^2/(2*p[5]^2))

end

“”"

I have to fit this data into a steppere line graph I have and I can’t figure out how to use LsqFit to integrate the data.