[SciPy-User] How to fix a parameter when using curve_fit ?
Spark Liang
sparkliang at gmail.com
Fri Jun 10 13:13:58 EDT 2011
thanks, Petro.
I remember that matlab has such options in optimize toolsbox
On Fri, Jun 10, 2011 at 8:53 PM, Piter_ <x.piter at gmail.com> wrote:
> 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
> >
> >
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110611/098c7c5f/attachment.html>
More information about the SciPy-User
mailing list