Given a function F one can measure its curvature with |F''|. In discrete case central differences can be used to estimate the value of F''. The points with |F''|<threshold can be removed. This measure, however, is over-sensitive to high frequency variations, what is shown below. The solid line shows the actual F, dotted line shows the aproximation.
can be introduced in several ways. We tested two of them: