bladex.deform.Deformation._optimum_control_points

static Deformation._optimum_control_points(X, Y, degree, nbasis, rbf_points)[source]

Private static method that computes the optimum coordinates of the B-spline control points.

Parameters:
  • X (array_like) – Array of original points of the parametric curve X-axis, usually array of the radii sections
  • Y (array_like) – radial distribution of parameter chord or pitch or rake or skew or camber, corresponding to the radial sections in X
  • degree (int) – degree of the B-spline construction for the parametric curve
  • nbasis (int) – number of control points associated with the parametric curve
  • rbf_points (int) – if specified greater than zero, then the X and Y arrays are interpolated using the Wendland C2 radial basis function to produce X and Y arrays with length = rbf_points. The larger number of rbf_points implies better estimation of the optimum control coordinates. To turn it off (i.e. compute control points based on original X, Y arrays) then insert 0. (Negative values or None results in same effect as zero)
Returns:

control points 2D coordinates

Return type:

numpy.ndarray