Inner products of Functional Data Objects o class (fdata)
Computes a inner products of functional data objects of class fdata.
inprod.fdata(fdata1, fdata2 = NULL, w = 1, ...)
fdata1 |
Functional data 1 or curve 1. |
fdata2 |
Functional data 2 or curve 2. |
w |
Vector of weights with length |
... |
Further arguments passed to or from other methods. |
By default it uses weights w=1
.
The observed points on each curve are equally spaced (by default) or not.
Manuel Febrero-Bande, Manuel Oviedo de la Fuente manuel.oviedo@usc.es
See also inprod and norm.fdata
## Not run: x<-seq(0,2*pi,length=1001) fx1<-sin(x)/sqrt(pi) fx2<-cos(x)/sqrt(pi) argv<-seq(0,2*pi,len=1001) fdat0<-fdata(rep(0,len=1001),argv,range(argv)) fdat1<-fdata(fx1,x,range(x)) inprod.fdata(fdat1,fdat1) inprod.fdata(fdat1,fdat1) metric.lp(fdat1) metric.lp(fdat1,fdat0) norm.fdata(fdat1) # The same integrate(function(x){(abs(sin(x)/sqrt(pi))^2)},0,2*pi) integrate(function(x){(abs(cos(x)/sqrt(pi))^2)},0,2*pi) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.