Functional data centred (subtract the mean of each discretization point)
The function fdata.cen centres the curves by subtracting the functional mean.
fdata.cen(fdataobj, meanX = func.mean(fdataobj))
fdataobj |
|
meanX |
The functional mean subtracted in the |
Return:
two fdata
class objects with:
Xcen |
The centered fdata. |
meanX |
Functional mean substracted. |
Manuel Febrero-Bande, Manuel Oviedo de la Fuente manuel.oviedo@usc.es
See Also as fdata
## Not run: data(phoneme) mlearn<-phoneme[["learn"]][13:15,] fdata.c=fdata.cen(mlearn)$Xcen par(mfrow=c(1,2)) plot(mlearn,type="l") plot(fdata.c,type="l") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.