ModifiedCardinalSpline

ModifiedCardinalSpline(ord, c_pt_times_all, s)

MODIFIEDCARDINALSPLINE Compute a cardinal spline basis for non-uniform knots, avoiding boundary effects

Usage:

Sp = ModifiedCardinalSpline(ord, c_pt_times_all, s)

Inputs:

ord : integer - history order (number of rows) – required c_pt_times_all : 1xK double - knot locations (bin units) – required s : double - cardinal spline tension parameter – required

Outputs:

Sp : ordxK double - cardinal spline basis matrix evaluated at each bin

Notes

Boundary knots use the reflected-tangent correction from Sarmashghi, Jadhav, and Eden, PLoS One 2021. Interior knots apply tension scaling factors derived from non-uniform spacing.

See also: FinerModCardinalSpline, build_design_mt

∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿