Re: [julia-users] Re: Parametric splines?

2016-03-21 Thread Kaj Wiik
Tomas, That's exactly I was after, thanks! Kaj On Sunday, March 20, 2016 at 6:55:19 PM UTC+2, Tomas Lycken wrote: > > I tried googling for “parametric splines” but didn’t end up with a concise > definition of what they are. If B-splines fit your needs (and it seems from > the SciPy

Re: [julia-users] Re: Parametric splines?

2016-03-21 Thread Kaj Wiik
Hi Kyle, I'll probably try to write a wrapper when I have more time, considered it already but I had to finish something quite quickly. Thanks for the tips for using collect and arrays of arrays. Kaj On Sunday, March 20, 2016 at 4:04:12 AM UTC+2, Kyle Barbary wrote: > > Hi Kaj, > > A pull

Re: [julia-users] Re: Parametric splines?

2016-03-20 Thread Tomas Lycken
I tried googling for “parametric splines” but didn’t end up with a concise definition of what they are. If B-splines fit your needs (and it seems from the SciPy documentation that it might do), maybe Interpolations.jl would be useful enough? The

Re: [julia-users] Re: Parametric splines?

2016-03-19 Thread Kyle Barbary
Hi Kaj, A pull request adding a wrapper for this to Dierckx.jl would be most welcome. This would be a matter of reading the docstring for the parcur function here and then writing a wrapper function that sets up the

[julia-users] Re: Parametric splines?

2016-03-19 Thread Kaj Wiik
Replying to myself...sorry. It seems that the easiest way for now is to call SciPy: using PyCall @pyimport scipy.interpolate as interpolate t = collect(0:.1:1) x = sin(2π*t) y = cos(2π*t) p = Array[] push!(p, x) push!(p, y) tck, u = interpolate.splprep(p, s=0) unew = collect(0:0.01:1) out =