Calculate curvature from smooth.spline in R
问题 is there a way to calculate the curvature in a specific point having a smooth.spline curve (or similar)in R? The curve is calculate from a set of x,y points. Thank you in advance. 回答1: This one is actually very easy if you know that there is a predict() method for objects created by smooth.spline() and that this method has an argument deriv which allows you to predict a given derivative (in your case the second derivative is required) instead of points on the spline. cars.spl <- with(cars,