[R] Radius of Curvature Fit

2013-09-18 Thread Tom D. Harray
Hi there, I want to know the radius of curvature for a set of points, but cannot figure out how to perform the fit in R. I have a set of points P_i for which I want to calculate the radius of curvature. The coordinates (x_i|y_i) of the points in a data.frame: p - data.frame( x = c(113, 143,

Re: [R] Radius of Curvature Fit

2013-09-18 Thread Pascal Oettli
Hello, You can use the function circlefit from pracma. The example is adapted from the help page to fit your data. #--- require(pracma) xp - c(113, 143, 184, 229, 290, 342, 393, 456, 540, 618) yp -