powered by
The function fdata.cen centres the curves by subtracting the functional mean.
fdata.cen(fdataobj,meanX=func.mean(fdataobj))
fdata class object.
fdata
The functional mean subtracted in the fdatobj.
fdatobj
Return: two fdata class objects with:
The centered fdata.
Functional mean substracted.
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.fdata(mlearn,type="l") plot.fdata(fdata.c,type="l") # }
Run the code above in your browser using DataLab