Center Functional Data

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(fd)

REQUIRED ARGUMENTS:

fd
A functional data object.

VALUE:

Returns a functional data object with same dimensions as fd that contains the centered versions of the functions in the object fd.

SEE ALSO:

sum.fd, mean.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")