> t<-seq(0,1,len=5)
> x<-matrix(c(1.3,2.3,21,2.4,3.8,9,4.5,11.3,4.2,7.8),2)
> s1 <- splinefun(t, colMeans(x), method = "monoH.FC")
> plot(s1)
I have used a simple example to use the build in Hermite spline function(which is splinefun). So I used it and plot the s1, it gives the plot that I was expecting. But my question: is there any way to get points from the function that they use to plot s1. I think it's probably infinite, but if I want 20 points of s1 function corresponding to 20 t points. how could I get that. FYI s1 returns the built in function, not any points or numeric value and you need fda package to run splinefun.