> 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.
splinefunion. Furthermore you seems to be asking how to build or understand some sort of spline function and that's more a mathematical or statistics methods question and those are not on-topic for SO. I voted to migrate to the Statistics forum but you could raise a flag to have it go to the Math forum. Once you have a well-defined algorithm then do some searching to see if its already been done and if not then come back here with a better question for SO. – DWin Apr 26 '19 at 22:18splinefunHis in thestatspackage and is loaded by default. – DWin Apr 26 '19 at 23:40