[SciPy-User] How to fix a parameter when using curve_fit ?

Piter_ x.piter at gmail.com
Fri Jun 10 08:53:02 EDT 2011


Hi.
In matlab I was doing it using global variables, but is has to be
better way with nested functions.
The idea is to rewrite your fitted function in the way that only not
fixed parameters  are fed to optimization routine,
but fixed variables are still available to it.
Hope it helps a bit.
Best.
Petro.





On Fri, Jun 10, 2011 at 2:01 PM, Spark Liang <sparkliang at gmail.com> wrote:
> Hi, would someone be so kind to tell me how to fix some parameters when
> using curve_fit ?
> I googled it and found that I may use scipy.odr or mpfit, but they seem
> rather complicated.
> I also searched the maillist, someone said it can be done by by writing a
> nested function or a class. but how to do it?
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>



More information about the SciPy-User mailing list