generate_knots: Generate Spline Knots.

View source: R/B_splines_est.R

generate_knotsR Documentation

Generate Spline Knots.

Description

A helper function that generates m + 2 spline knots of the form:

\kappa_{0} = 0 , \kappa_{1} = 1 / (m + 1) , \dots , \kappa_{m} = m / (m + 1) , \kappa_{m + 1} = 1 .

The knots are equally spaced with boundary knots \kappa_{0} = 0 and \kappa_{m + 1} = 1 .

Usage

generate_knots(m)

Arguments

m

The number of nonboundary knots.

Value

A numeric vector representing the knots, including the boundary knots.

References

Choi, I., Li, B. & Wang, X. (2013). Nonparametric Estimation of Spatial and Space-Time Covariance Function. JABES 18, 611-630. https://doi.org/10.1007/s13253-013-0152-z

Examples

generate_knots(3)

CovEsts documentation built on Sept. 10, 2025, 10:39 a.m.