bundles / scipy latest / scipy / interpolate / _ndbspline / NdBSpline / design_matrix
classmethod
scipy.interpolate._ndbspline:NdBSpline.design_matrix
Summary
Construct the design matrix as a CSR format sparse array.
Parameters
xvals: ndarray, shape(npts, ndim)Data points.
xvals[j, :]gives thej-th data point as anndim-dimensional array.t: tuple of 1D ndarrays, length-ndimKnot vectors in directions 1, 2, ... ndim,
k: intB-spline degree.
extrapolate: bool, optionalWhether to extrapolate out-of-bounds values of raise a
ValueError
Returns
design_matrix: a CSR arrayEach row of the design matrix corresponds to a value in xvals and contains values of b-spline basis elements which are non-zero at this value.
Aliases
-
scipy.interpolate.NdBSpline.design_matrix