title: Algorithm for path simplification and smoothing of 2D trajectories
body: <p>I'm searching for an algorithm for path simplification and smoothing for 2D trajectories. So I have a ordered list of 2D points. These points should be simplified, e.g. with the Ramer–Douglas–Peucker algorithm. But the output must be smooth, so the resulting path should be constructed from Bezier curves or splines. Is there any modification of the Ramer–Douglas–Peucker algorithm which could handle this? </p>
  
  <p>I found a path simplification algorithm in the paper.js library, which does exactly what I'm searching for: <a href="http://paperjs.org/examples/path-simplification/" rel="noreferrer">http://paperjs.org/examples/path-simplification/</a> But I was not able to understand the algorithm from the undocumented javascript source code.</p>