kn()

Contents

kn()#

liesel_ptm.kn(x, order=3, n_params=20)#

Create equidistant knots for B-Spline of the specified order.

Some additional info:

  • dim(knots) = n_params + order + 1

  • n_params = dim(knots) - order - 1

Parameters:
  • x (Any) – The data for which the knots are created.

  • order (int) – A positive integer giving the order of the spline function. A cubic spline has order of 3. (default: 3)

  • n_params (int) – Number of parameters of the B-spline. (default: 20)

Return type:

Any