\HeaderA{polySpline}{Piecewise Polynomial Spline Representation}{polySpline}
\aliasA{as.polySpline}{polySpline}{as.polySpline}
\keyword{models}{polySpline}
\begin{Description}\relax
Create the piecewise polynomial representation of a spline object.
\end{Description}
\begin{Usage}
\begin{verbatim}
polySpline(object, ...)
as.polySpline(object, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] An object that inherits from class \code{spline}.
\item[\code{...}] Optional additional arguments.  At present no additional
arguments are used.
\end{ldescription}
\end{Arguments}
\begin{Value}
An object that inherits from class \code{polySpline}.  This is the
piecewise polynomial representation of a univariate spline function.
It is defined by a set of distinct numeric values called knots.  The
spline function is a polynomial function between each successive pair
of knots.  At each interior knot the polynomial segments on each side
are constrained to have the same value of the function and some of its
derivatives.
\end{Value}
\begin{Author}\relax
Douglas Bates and Bill Venables
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{interpSpline}{interpSpline}},
\code{\LinkA{periodicSpline}{periodicSpline}},
\code{\LinkA{splineKnots}{splineKnots}},
\code{\LinkA{splineOrder}{splineOrder}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
ispl <- polySpline( interpSpline( weight ~ height,  women, bSpline = TRUE ) )
print( ispl )   # print the piecewise polynomial representation
plot( ispl )    # plots over the range of the knots
points( women$height, women$weight )
\end{ExampleCode}
\end{Examples}

