Recent Releases of splines2
splines2 - splines2 0.5.2
New features
- Added a new argument named
coefto theplot()method forsplines2objects, allowing visualization of the fitted spline function with a given coefficient vector.
Minor changes
- Made the error message more clear for duplicated internal knots.
- R
Published by wenjie2wang almost 2 years ago
splines2 - splines2 0.5.1
Minor changes
- Fixed broken
@docType packagedocumentation.
- R
Published by wenjie2wang over 2 years ago
splines2 - splines2 0.5.0
New features
- Added a new function named
nsk()for natural cubic spline basis functions following the functionsurvival::nsk()(of survival package version 3.2-8). - Added
plot()methods to quickly visualize the spline basis functions. - Added
$method to extract an attribute of the returnedsplines2object. - Added a new argument named
periodictobSpline()for periodic B-splines and a new class namedPeriodicBSplineto the Rcpp interface: issue 19. - Added a new argument named
coefto thepredict()methods to compute the responding spline function and made it possible to obtain the derivatives or update spline basis functions by passing...to theupdate()methods. - Added a new argument named
trimtonaturalSpline()to set the default boundary knots after trimming a fraction of observations. - Added a new argument named
warn.outsideand a package option namedsplines2.warn.outsideto specify if a warning should be thrown out for B-splines, etc. when anyxis placed outside the boundary. - Added the following function aliases to encourage the use in a model formula:
bsp()=bSpline()msp()=mSpline()isp()=iSpline()csp()=cSpline()nsp()=naturalSpline()bpoly()=bernsteinPoly()
- Added a matrix named
Hto the attribution of objects for natural cubic splines so that users may transform cubic B-splines (from other software/packages) to the natural cubic splines (returned bynaturalSpline()/nsp()ornsk()).
Major changes
- Adjusted the class order of the returned objects.
- Adjusted the default placement of the internal knots from the specified
dfto be equidistant if the internal knots resulted from quantiles are problematic. A warning will be thrown out in that case.
- R
Published by wenjie2wang over 2 years ago
splines2 - splines2 0.4.8
Bug fixes
- Fixed the Rcpp interface of
PeriodicMSplineso that a simple knot sequence can be specified throughset_knot_sequence: issue 18.
- R
Published by wenjie2wang almost 3 years ago
splines2 - splines2 0.4.7
Minor changes
- Adjusted the column arrangement of the natural cubic spline basis matrix so that it matches the equations given in the JDS paper: issue 17.
- R
Published by wenjie2wang about 3 years ago
splines2 - splines2 0.4.6
New features
- Added
update()methods to produce new spline basis functions based on the given object with specified updates in terms ofdegreeandknots, etc.
Minor changes
- Appended a new class named
splines2to the output matrices to simplify some common S3 methods.
- R
Published by wenjie2wang over 3 years ago
splines2 - splines2 0.4.5
Minor changes
- Improved the computational efficiency of finding the knot intervals for
x(by replacing the naive binary search implementation withstd::upper_boundandstd::distance).
- R
Published by wenjie2wang over 4 years ago
splines2 - splines2 0.4.4
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
derivsandintegaltobSpline()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 forcSplineobjects whenscale = FALSE.
- R
Published by wenjie2wang over 4 years ago
splines2 - splines2 0.4.3
New features
- Enabled extended knot sequence that allows multiplicity of internal knots for B-splines, M-splines, I-splines, and C-splines in the C++ interface.
- Added type conversion to
BernsteinPolyandPeriodicMSplineobjects to the C++ interface.
Minor changes
- Added testing examples for constructing spline basis functions via the C++ interface.
- R
Published by wenjie2wang almost 5 years ago
splines2 - splines2 0.4.2
New features
- Added
knots()methods to extract internal knots and boundary knots from a given splines2 object.
Major changes
- Updated the generation of the knot sequence for period M-splines following
Piegl and Tiller (1997), which relaxed the previous requirement that
length(knots) >= degreetolength(knots) >= degree - 1.
- R
Published by wenjie2wang about 5 years ago
splines2 - splines2 0.4.1
New features
- Added function
naturalSpline()providing implementation of nonnegative natural cubic splines. - Added argument
periodicto functionmSpline()for periodic M-splines. - Added argument
integralto functionmSpline()for integrals of M-splines or periodic M-splines. - Added
deriv(),predict(), andprint()method fornaturalSplineclass object.
Minor changes
- Updated the
deriv()method formSplineclass object for periodic M-splines.
- R
Published by wenjie2wang about 5 years ago
splines2 - splines2 0.3.1
Minor changes
- Modified testing examples for CRAN tests on r-patched-solaris-x86 and r-oldrel-macos-x86_64.
- R
Published by wenjie2wang over 5 years ago
splines2 - splines2 0.3.0
New features
- Added generalized Bernstein polynomials in function
BersteinPoly. - 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 bases continuous at right boundary knot for consistency with spline bases of non-zero degrees.
- Changed the default value of argument
interceptin functioniSplineandcSplinetoTRUEfor a complete set of spline bases in shape-restricted regression. - Removed the corresponding M-spline basis from attributes of outputs from
iSplineandcSpline. - Removed the corresponding B-spline basis from attributes of outputs from
bSpline.
Bug fixes
- Fixed
deriv.mSplinemethod for third derivatives of scaled C-splines.
- R
Published by wenjie2wang over 5 years ago
splines2 - splines2 0.2.8
Bug fixes
- Fixed inconsistency of argument
dffor piece-wise constant bases whenknots = NULL.
- R
Published by wenjie2wang over 7 years ago
splines2 - splines2 0.2.7
Minor changes
- Updated tests for R development version.
- R
Published by wenjie2wang about 8 years ago
splines2 - splines2 0.2.6
Minor changes
- Added checks for any internal knot incorrectly placed outside of the boundary knots and added warnings for users' reference.
- R
Published by wenjie2wang over 8 years ago
splines2 - splines2 0.2.5
Minor changes
- Added more tests and increased code coverage.
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.cSplinemethod for derivatives of order greater than two whenscale = TRUE.
- R
Published by wenjie2wang about 9 years ago
splines2 - splines2 0.2.4
New features
- Added function
dbsgenerating 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
derivmethods for derivatives of given order of any existing splines2 object that can be generated currently.
Major changes
- Added argument
derivsto functionmSplineandiSplinefor derivatives. - Changed all the classes of object generated for a better dispatching on methods.
Minor changes
- Added tests for all major functions with the help of package testthat.
Bug fixes
- Fixed the generation of splines without any internal knot.
- R
Published by wenjie2wang about 9 years ago
splines2 - splines2 0.2.3
Bug fixes
- Fixed one-piece constant basis for M-splines.
- R
Published by wenjie2wang about 9 years ago
splines2 - splines2 0.2.2
Bug fixes
- Fixed the NA's handling in all the functions constructing spline bases.
- R
Published by wenjie2wang over 9 years ago
splines2 - splines2 0.2.1
New features
- Added function
bSplinegenerating B-spline basis allowing zero degree or piecewise constant basis based on functionbsin package splines. - Introduced function
bSplineto allow M-splines of degree zero. - Added function
cSplineconstructing convex spline (C-spline) basis. - Added
predictmethods forbSpline2object andcSplineobject generated bybSplineandcSpline, respectively. - Added
printmethods for all splines2 objects developed so far.
Major changes
- Improved the function
iSplineto construct I-spline basis directly from B-spline basis instead of M-spline basis.
Minor changes
- Updated all CRAN URL to a canonical form suggested.
- R
Published by wenjie2wang over 9 years ago
splines2 - splines2 0.1.0
New features
- The first version of splines2 providing functions constructing M-spline, I-spline, and integral of B-spline basis.
- R
Published by wenjie2wang over 9 years ago