# Determine M-spline basis coefficients which give a constant function.

Source:`R/mspline_init.R`

`mspline_constant_coefs.Rd`

This works by obtaining the coefficients of the corresponding B-spline basis, which are equal if the B-spline is a constant function.

## Arguments

- mspline
A list with components

`knots`

(vector of knots),`degree`

(polynomial degree) and`bsmooth`

(logical for smoothness constraint at boundary), defining an M-spline configuration.- logit
If

`TRUE`

then the multinomial logit transform of the coefficients is returned. This is a vector of length one less than the number of coefficients, with the rth element defined by \(log(coefs[r+1] / coefs[1])\).