tfg.math.interpolation.bspline.interpolate

View source on GitHub

Applies B-spline interpolation to input control points (knots).

Note:

In the following, A1 to An, and B1 to Bk are optional batch dimensions.

knots A tensor with shape [B1, ..., Bk, C] containing knot values, where C is the number of knots.
positions Tensor with shape [A1, .. An]. Positions must be between `[0, C

  • D)for non-cyclical and[0, C)for cyclical splines, whereCis the number of knots andDis the spline degree. </td> </tr><tr> <td>degree</td> <td> Anintbetween 0 and 4, or an enumerated constant from the Degree class, which is the degree of the splines. </td> </tr><tr> <td>cyclical</td> <td> Abool, whether the splines are cyclical. </td> </tr><tr> <td>name`
A name for this op. Defaults to "bspline_interpolate".

A tensor of shape [A1, ... An, B1, ..., Bk], which is the result of spline interpolation.