centre.Rd
\name{centre}
\alias{centre}
\title{
Mean function, variance function, median function, trim mean function of functional data
}
\description{
Mean function, variance function, median function, trim mean function of functional data
}
\usage{
centre(x, type)
}
\arguments{
\item{x}{An object of class \code{matrix}.}
\item{type}{Mean, variance, median or trim mean?}
}
\value{
Return mean function, variance function, median function or trim mean function.
}
\author{
Han Lin Shang
}
\seealso{
\code{\link[ftsa]{pcscorebootstrapdata}}
}
\examples{
centre(ElNino$y, "mean")
}
\keyword{models}