Center Functional Data
center.fd
Language Reference for FDA Library

Center Functional Data

DESCRIPTION:

Subtract the pointwise mean from each of the functions in a functional data object; that is, to center them on the mean function.

USAGE:

center.fd(fdobj)

REQUIRED ARGUMENTS:

fdobj
a functional data object to be centered.

VALUE:

a functional data object whose mean is zero.

SEE ALSO:

mean.fd, sum.fd, stddev.fd, std.fd

EXAMPLES:

#  -----  make temperature fd object, don't smooth
tempfd <- data2fd(tempmat, monthtime,  monthbasisfd)
#  ----------  center and plot the temperature data
tempcenterfd <- center.fd(tempfd)
par(mfrow=c(1,1),pty="m")
plot(tempcenterfd, xlab="Months", ylab="Deg. C",
  main="Centered Temperature")