DemoSpl | R Documentation |
Demonstrate a cubic spline and its B-spline representation.
DemoSpl(uniform = TRUE)
uniform |
if TRUE, place uniform knots; if FALSE, place non-uniform knots. |
A list giving the domain knots, B-spline coefficients and piecewise polynomial coefficients of the illustrated cubic spline.
Zheyuan Li zheyuan.li@bath.edu
require(gps)
## a cubic spline with uniform knots
DemoSpl(uniform = TRUE)
## a cubic spline with non-uniform knots
DemoSpl(uniform = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.