# tfg.math.interpolation.bspline.interpolate

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/math/interpolation/bspline.py#L249-L280) |

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

    tfg.math.interpolation.bspline.interpolate(
        knots: type_alias.TensorLike,
        positions: type_alias.TensorLike,
        degree: int,
        cyclical: bool,
        name: str = 'bspline_interpolate'
    ) -> tf.Tensor

<br />

<br />

<br />

| ## Note ||
|---|---|
| In the following, A1 to An, and B1 to Bk are optional batch dimensions. ||

<br />

<br />

<br />

<br />

| ## Args ||
|---|---|
| `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, where `C` is the number of knots and `D` is the spline degree. |
| `degree` | An `int` between 0 and 4, or an enumerated constant from the Degree class, which is the degree of the splines. |
| `cyclical` | A `bool`, whether the splines are cyclical. |
| `name` | A name for this op. Defaults to "bspline_interpolate". |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor of shape `[A1, ... An, B1, ..., Bk]`, which is the result of spline interpolation. ||

<br />