[SciPy-user] splrep problem...
pecontal at obs.univ-lyon1.fr
Thu Sep 29 08:52:27 CDT 2005
I am trying to use the splrep function to fit data with a B-spline. It works
well when the knots are computed by the routine (ie task=0). But when I
provide the knots myself I have a segmentation error. And if I provide the
knots list computed by splrep in a previous call with task=0, I have the same
behaviour. For example:
a = arange(100)*2*pi/10.
tck = interpolate.splrep(a,sin(a),s=1)
tck = interpolate.splrep(a,sin(a),task=-1,t=tck)
-> segmentation error
Does someone has an idea of what is happening?
CRAL - Observatoire de Lyon
9, Av. Charles Andre
F-69561 Saint Genis Laval Cedex
tel (33) (0)184.108.40.206.76 - fax (33) (0)220.127.116.11.86
email : pecontal at obs.univ-lyon1.fr
More information about the SciPy-user