scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
quadratic(x)

This is a special case of bspline , and equivalent to bspline(x, 2) .

Parameters

x : array_like

a knot vector

Returns

res : ndarray

Quadratic B-spline basis function values

A quadratic B-spline.

See Also

bspline

B-spline basis function of order n

cubic

A cubic B-spline.

Examples

We can calculate B-Spline basis function of several orders:

>>> from scipy.signal import bspline, cubic, quadratic
... bspline(0.0, 1) 1
>>> knots = [-1.0, 0.0, -1.0]
... bspline(knots, 2) array([0.125, 0.75, 0.125])
>>> np.array_equal(bspline(knots, 2), quadratic(knots))
True
>>> np.array_equal(bspline(knots, 3), cubic(knots))
True
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.signal._bsplines.quadratic scipy.signal._bsplines.cubic scipy.signal._bsplines.bspline

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/signal/_bsplines.py#296
type: <class 'function'>
Commit: