fda.usc (version 1.2.3)

fdata.cen: Functional data centred (subtract the mean of each discretization point)

Description

The function fdata.cen centres the curves by subtracting the functional mean.

Usage

fdata.cen(fdataobj,meanX=func.mean(fdataobj))

Arguments

fdataobj
fdata class object.
meanX
The functional mean subtracted in the fdatobj.

Value

  • Return: two fdata class objects with:
  • XcenThe centered fdata.
  • meanXFunctional mean substracted.

See Also

See Also as fdata

Examples

Run this code
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