control.flatsys.BezierFamily
- class control.flatsys.BezierFamily(N, T=1)[source]
Bases:
BasisFamily
Bezier curve basis functions.
This class represents the family of polynomials of the form
- Parameters
- Nint
Degree of the Bezier curve.
- Tfloat
Final time (used for rescaling). Default value is 1.
Methods
Evaluate the ith basis function at a point in time.
Compute function values given the coefficients and time points.
Evaluate kth derivative of ith basis function at time t.
Get the number of coefficients for a variable.
- eval(coeffs, tlist, var=None)[source]
Compute function values given the coefficients and time points.
- Parameters
- coeffsarray
Basis function coefficient values.
- tlistarray
List of times at which to evaluate the function.
- varint or None, optional
Number of independent variables represented using the basis. If None, then basis represents a single variable.
- Returns
- array
Values of the variable(s) at the times in
tlist
.
- eval_deriv(i, k, t, var=None)[source]
Evaluate kth derivative of ith basis function at time t.
See
BasisFamily.eval_deriv
for more information.