fdata.cen

Functional data centred (subtract the mean of each discretization point)

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

Keywords
manip
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:

Xcen

The centered fdata.

meanX

Functional mean substracted.

See Also

See Also as fdata

Aliases
  • fdata.cen
Examples
# 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")
# }
# NOT RUN {
# }
Documentation reproduced from package fda.usc, version 2.0.1, License: GPL-2

Community examples

Looks like there are no examples yet.