powered by
The function fdata.cen centres the curves by subtracting the functional mean.
fdata.cen(fdataobj, meanX = func.mean(fdataobj))
Return: two fdata class objects with:
fdata
The centered fdata.
Functional mean substracted.
fdata class object.
The functional mean subtracted in the fdatobj.
fdatobj
Manuel Febrero-Bande, Manuel Oviedo de la Fuente manuel.oviedo@udc.es
See Also as fdata
if (FALSE) { 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") }
Run the code above in your browser using DataLab