inla.simplify.curve.RdAttempts to simplify a polygonal curve by joining nearly colinear segments.
inla.simplify.curve(loc, idx, eps)Uses a variation of the binary splitting Ramer-Douglas-Peucker
algorithm, with a width eps ellipse instead of a rectangle,
motivated by prediction ellipse for Brownian bridge.
An index vector into loc specifying the simplified polygonal curve.