projec | R Documentation |
Computes the inner product between each curve collected in data
and a particular curve \theta
.
projec(data, theta, order.Bspline = 3, nknot.theta = 3, range.grid = NULL, nknot = NULL)
data |
Matrix containing functional data collected by row |
theta |
Vector containing the coefficients of |
order.Bspline |
Order of the B-spline basis functions for the B-spline representation of |
nknot.theta |
Number of regularly spaced interior knots of the B-spline basis. The default is 3. |
range.grid |
Vector of length 2 containing the range of the discretisation of the functional data. If |
nknot |
Number of regularly spaced interior knots for the B-spline representation of the functional data. The default value is |
A matrix containing the inner products.
The construction of this code is based on that by Frederic Ferraty, which is available on his website https://www.math.univ-toulouse.fr/~ferraty/SOFTWARES/NPFDA/index.html.
German Aneiros Perez german.aneiros@udc.es
Silvia Novo Diaz snovo@est-econ.uc3m.es
Novo S., Aneiros, G., and Vieu, P., (2019) Automatic and location-adaptive estimation in functional single–index regression. Journal of Nonparametric Statistics, 31(2), 364–392, \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.1080/10485252.2019.1567726")}.
See also semimetric.projec
.
data("Tecator")
names(Tecator)
y<-Tecator$fat
X<-Tecator$absor.spectra
#length(theta)=6=order.Bspline+nknot.theta
projec(X,theta=c(1,0,0,1,1,-1),nknot.theta=3,nknot=20,range.grid=c(850,1050))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.