Displaying 1 result from an estimated 1 matches for "linesmooth3d".
2008 Mar 31
0
3d line smoothing
...priate functionality or
a link to read up about possible approaches?
With many thanks for your help,
Greg Jefferis.
PS As an aside, wouldn't categorising the 1350 downloadable packages on CRAN
according to their content make a nice exercise in applied statistical
learning/visualisation?
--
LineSmooth3d<-function(l){
lxy=smooth.spline(l[,1:2])
lxz=smooth.spline(l[,c(1,3)])
cbind(l[,1],predict(lxy,l[,1])$y,predict(lxz,l[,1])$y)
}
# First 2 segments of a neuron
l=structure(c(2.240391, 5.629143, 8.140456, 9.94432, 12.295891,
13.457473, 15.170222, 17.758942, 18.290545, 20.334337, 22.02...