Hi all,
I am still pondering whether or not (and if which days) to go to
EuroScipy. Who else is there and would like to discuss a bit or
whatever else?
- Sebastian
signature.asc
Description: This is a digitally signed message part
___
NumPy-Discussion
Hi all
Does anyone know how to invoke curve_fit with a variable number of parameters,
e.g. a1 to a10 without writing it out,
e.g.
def func2( x, a1,a2,a3,a4 ):
# Bessel function
tmp = scipy.special.j0( x[:,:] )
return np.dot( tmp[:,:] , np.array( [a1,a2,a3,a4] )
### y
On Tue, Aug 2, 2016 at 6:41 PM, Siegfried Gonzi
wrote:
> Hi all
>
> Does anyone know how to invoke curve_fit with a variable number of
> parameters, e.g. a1 to a10 without writing it out,
>
> e.g.
>
> def func2( x, a1,a2,a3,a4 ):
>
> # Bessel function
> tmp = scipy.special.j0( x[: