DemoSpl: Demonstrate polynomial spline and its B-spline representation

DemoSplR Documentation

Demonstrate polynomial spline and its B-spline representation

Description

Demonstrate cubic spline and its B-spline representation.

Usage

DemoSpl(uniform = TRUE)

Arguments

uniform

TRUE for uniform knots and FALSE for non-uniform knots.

Value

A list giving domain knots, B-spline coefficients and piecewise polynomial coefficients.

Author(s)

Zheyuan Li zheyuan.li@bath.edu

Examples

require(gps.mgcv)

## cubic spline with uniform knots
DemoSpl(uniform = TRUE)

## cubic spline with non-uniform knots
DemoSpl(uniform = FALSE)

ZheyuanLi/gps.mgcv documentation built on Sept. 19, 2024, 9:11 p.m.