title: How can I fit a Bézier curve to a set of data?
body: <p>I have a set of data points (which I can thin out) that I need to fit with a <a href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve" rel="noreferrer">Bézier curve</a>.  I need speed over accuracy, but the fit should be decent enough to be recognizable. I'm also looking for an algorithm I can use that doesn't make much use of libraries (specifically <a href="http://en.wikipedia.org/wiki/NumPy" rel="noreferrer">NumPy</a>).</p>
  
  <p>I've read several research papers, but none has enough detail to fully implement. Are there any open-source examples? </p>