gauss_spline(x, n)
The B-spline basis function can be approximated well by a zero-mean Gaussian function with standard-deviation equal to $\sigma=(n+1)/12$
for large n
:
B-spline basis function values approximated by a zero-mean Gaussian function.
Gaussian approximation to B-spline basis function of order n.
We can calculate B-Spline basis functions approximated by a gaussian distribution:
>>> from scipy.signal import gauss_spline, bspline
... knots = np.array([-1.0, 0.0, -1.0])
... gauss_spline(knots, 3) array([0.15418033, 0.6909883, 0.15418033]) # may vary
>>> bspline(knots, 3) array([0.16666667, 0.66666667, 0.16666667]) # may varySee :
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.signal._bsplines.gauss_spline
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