MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: sampling a spline


Hi Charles,

> How does one uniformly sample a spline gotten from the 
> command SplineFit?

Did you try Table?

Needs["Splines`"]
pnt = {{0, 0}, {1, 1}, {2, 4}, {3, 9}, {4, 16}};
spl = SplineFit[pnt, Cubic]
tbl = Table[spl[t], {t, 0, 4, .2}]
Show[{
  ListPlot[pnt, Joined -> True],
  ListPlot[tbl, PlotStyle -> Red]
  }
 ]

Regards,

Dave.



  • Prev by Date: Question about the derivative of Abs
  • Next by Date: Re: Wrapping Begin["Context`"], ..., End[] into a function
  • Previous by thread: Re: Question about the derivative of Abs
  • Next by thread: Re: sampling a spline