[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)18.104.22.168.76 - fax (33) (0)22.214.171.124.86
email : pecontal at obs.univ-lyon1.fr
More information about the SciPy-user