gammy.formulae.BSpline1d

BSpline1d

BSpline1d(grid, order=3, extrapolate=True, prior=None, mu_basis=None, mu_hyper=None)gammy.formulae.Formula[source]

B-spline basis on a fixed one-dimensional grid

Number of spline basis functions is always N = len(grid) + order - 2

TODO: Verify that this doesn’t break when scaling the grid

(extrapolation + damping)

Parameters
gridnp.ndarray

Discretization grid

orderint

Order of the spline function. Polynomial degree is order - 1

extrapolatebool

Extrapolate outside of the grid using basis functions “touching” the endpoints

priorTuple[np.ndarray]

Prior mean and precision matrix

mu_basisList[Callable]

Basis for estimating the mean hyperparameter

mu_hyperTuple[np.ndarray]

Hyperprior mean and precision matrix