R/coef.dierckx.R

coef.dierckx <- function(object, ...) {
##
## 1.  How many coef are active?
##
  nCoefActive <- with(object, g+k+1)
##
## 2.  Return only the active coefficients
##  
#  object$coef[abs(object$coef) > 0]
  object$coef[1:nCoefActive]
}

Try the DierckxSpline package in your browser

Any scripts or data that you put into this service are public.

DierckxSpline documentation built on May 2, 2019, 6:30 p.m.