Learn R Programming

icmstate (version 0.2.0)

bbase_singletime: Compute a B-spline basis for a single time point

Description

Similar to bbase_D, but sped up for single time points.

Usage

bbase_singletime(x, xl = min(x), xr = max(x), nseg = 10, bdeg = 3)

Value

A vector containing the basis

Arguments

x

The value for which the basis is to be evaluated (ONLY SINGLE VALUE ALLOWED)

xl

The left boundary of the domain

xr

The right boundary of the domain

nseg

The number of inter-knot segments on the domain

bdeg

The degree of the B-splines (2 means quadratic, 3 means cubic, and so on)

Examples

Run this code
x = 0.02
B = bbase_singletime(x, 0, 1, 20, 3)

Run the code above in your browser using DataLab