Ramer-Douglas-Peucker algorithm for curve fitting with a PolyLine
a 2D matrix with the coordinates of 2D points
an number between 0 and 1. Recomended 0.01.
A matrix with the points of segments of a Poly Line.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.