P.penalty(tt,P=c(0,0,1))
n
discretization points or argvals.P
=c(0,0,1) penalizes the second order difference.sum(n)
x sum(n)
P
=c(0,1,2), the function return the penalty matrix the second order
difference of a vector $tt$. That is
fdata2ppls
P.penalty((1:10)/10,P=c(0,0,1))
# a more detailed example can be found under script file }
<keyword>math</keyword>
Run the code above in your browser using DataLab