splines2 0.4.7
CRAN release: 2023-01-14
Minor changes
- Adjusted the column arrangement of the natural cubic spline basis matrix so that it matches with the equations given in the JDS paper: issue 17.
splines2 0.4.6
CRAN release: 2022-08-15
New features
- Added
update()
methods to produce new spline basis functions based on the given object with specified updates in terms ofdegree
andknots
, etc.
splines2 0.4.4
CRAN release: 2021-08-16
New features
- Added the
makepredictcall()
methods for all available spline basis functions to helpmodel.frame.default()
create the right matrices when predicting from models with terms such asbSpline()
, etc. Thanks Zheyuan Li for suggesting this feature. - Added arguments
derivs
andintegal
tobSpline()
for consistency withmSpline()
andbernsteinPoly()
, etc.
Minor changes
- Made the internal checking procedure more strict to throw an error if any internal knots are placed at or outside boundary: issue 5.
Bug fixes
- Fixed the
predict()
method forcSpline
objects whenscale = FALSE
.
splines2 0.4.3
CRAN release: 2021-04-21
splines2 0.4.2
CRAN release: 2021-02-21
New features
- Added
knots()
methods to extract internal knots and boundary knots from a given splines2 object.
splines2 0.4.1
CRAN release: 2021-01-07
New features
- Added function
naturalSpline()
providing implementation of nonnegative natural cubic splines. - Added argument
periodic
to functionmSpline()
for periodic M-splines. - Added argument
integral
to functionmSpline()
for integrals of M-splines or periodic M-splines. - Added
deriv()
,predict()
, andprint()
method fornaturalSpline
class object.
Minor changes
- Updated the
deriv()
method formSpline
class object for periodic M-splines.
splines2 0.3.0
CRAN release: 2020-07-09
New features
- Added function
bernsteinPoly()
providing implementation of generalized Bernstein polynomials. - Added C++ interface that can be easily integrated with Rcpp.
Major changes
- Changed most implementations from R to C++ with help of Rcpp and RcppArmadillo to boost the performance.
Minor changes
- Made piece-wise constant basis functions continuous at right boundary knot for consistency with spline basis matrix of non-zero degrees.
- Changed the default value of argument
intercept
in functioniSpline()
andcSpline()
toTRUE
for a complete set of spline basis functions in shape-restricted regression. - Removed the corresponding M-spline basis from attributes of outputs from
iSpline()
andcSpline()
. - Removed the corresponding B-spline basis from attributes of outputs from
bSpline()
.
Bug fixes
- Fixed
deriv.mSpline()
method for third derivatives of scaled C-splines.
splines2 0.2.8
CRAN release: 2018-06-14
splines2 0.2.5
CRAN release: 2017-02-10
Bug fixes
- Fixed evaluation of derivatives of M-splines for a single value. Thanks Ina Jazic for reporting the bug and providing possible fix.
- Fixed
deriv.cSpline()
method for derivatives of order greater than two whenscale = TRUE
.
splines2 0.2.4
CRAN release: 2017-01-10
New features
- Added function
dbs()
generating derivative of given order of B-splines. It is a similar function withsplines::splineDesign()
. However, it provides a more user-friendly interface and more consistent handling onNA
’s. - Added
deriv()
methods for derivatives of given order of any existing splines2 object that can be generated currently.
splines2 0.2.1
CRAN release: 2016-10-08
New features
- Added function
bSpline()
generating B-spline basis allowing zero degree or piecewise constant basis based on functionbs()
in the splines package. - Introduced function
bSpline()
to allow M-splines of degree zero. - Added function
cSpline()
constructing convex spline (C-spline) basis. - Added
predict()
methods forbSpline2
object andcSpline
object generated bybSpline()
andcSpline()
, respectively. - Added
print()
methods for all splines2 objects developed so far.
Major changes
- Improved the function
iSpline()
to construct I-spline basis directly from B-spline basis instead of M-spline basis.