curves
We provide an implementation of cubic-splines, parameterised by their null-space. The cubic spline is constrained at two end-points, and the basis of the null space is used to parameterise the curve itself.
Rational for Parameterisation:
In short, equations for cubic splines form a system of linear homogeneous equations
We also know the solution set can be described as
If we consider elements of the null-basis \(\mathbf{\varphi} \in N(A)\), we see
so parameterising the cubic spline by the basis of the null-space, we ensure that the equations defining the cubic spline are satisfied.
riemax.numerical.curves.CubicSpline
Bases: typing.NamedTuple
Cubic spline parameterised by basis of the null-space.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
p |
position of the curve start-point |
required | |
q |
position of the curve end-point |
required | |
num_nodes |
number of nodes used to represent the curve |
required | |
num_edges |
number of edges in the representation |
required | |
basis |
computed basis of the null-space |
required |