@@ -70,7 +70,7 @@ for all functions and contains the following vignettes:
7070
7171## Performance
7272
73- Since v0 .3.0, the implementation of the main functions has been
73+ Since version 0 .3.0, the implementation of the main functions has been
7474rewritten in C++ with the help of the ** Rcpp** and ** RcppArmadillo**
7575packages. The computational performance has thus been boosted and
7676comparable with the function ` splines::splineDesign() ` .
@@ -120,8 +120,8 @@ microbenchmark(
120120
121121 Unit: relative
122122 expr min lq mean median uq max neval
123- splines::bs 3.7654 3.4269 2.9937 3.2721 2.6982 2.2310 100
124- splines::splineDesign 2.2060 1.9829 2.0429 2.1138 1.8133 9.7254 100
123+ splines::bs 3.7488 3.4227 2.9600 3.2924 2.6877 1.9122 100
124+ splines::splineDesign 2.2028 1.9788 2.0333 2.1305 1.8288 8.2016 100
125125 splines2::bSpline 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 100
126126
127127Similarly, for derivatives of B-splines, ` splines2::dbs() ` provides
@@ -142,14 +142,14 @@ microbenchmark(
142142```
143143
144144 Unit: relative
145- expr min lq mean median uq max neval
146- splines::splineDesign 2.6044 2.4404 2.1964 2.2872 2.2623 1.7084 100
147- splines2::dbs 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 100
145+ expr min lq mean median uq max neval
146+ splines::splineDesign 2.6498 2.4535 2.193 2.2861 2.1459 1.558 100
147+ splines2::dbs 1.0000 1.0000 1.000 1.0000 1.0000 1.000 100
148148
149149The ** splines** package does not contain an implementation for integrals
150150of B-splines. Thus, we performed a comparison with package ** ibs**
151- (version ` r packageVersion("ibs") ` ) , where the function ` ibs::ibs() ` was
152- also implemented in ** Rcpp** .
151+ (version 1.4) , where the function ` ibs::ibs() ` was also implemented in
152+ ** Rcpp** .
153153
154154``` r
155155# # integrals of B-splines
@@ -168,8 +168,8 @@ microbenchmark(
168168
169169 Unit: relative
170170 expr min lq mean median uq max neval
171- ibs::ibs 23.677 21.335 19.921 21.505 20.879 5.2521 100
172- splines2::ibs 1.000 1.000 1.000 1.000 1.000 1.0000 100
171+ ibs::ibs 24.306 21.108 22.016 21.621 21.342 26.533 100
172+ splines2::ibs 1.000 1.000 1.000 1.000 1.000 1.000 100
173173
174174The function ` ibs::ibs() ` returns the integrated B-splines instead of
175175the integrals of spline basis functions. Thus, we applied the same
@@ -195,9 +195,9 @@ microbenchmark(
195195```
196196
197197 Unit: relative
198- expr min lq mean median uq max neval
199- splines::ns 4.9949 4.7999 4.6694 4.4282 5.014 4.924 100
200- splines2::nsp 1.0000 1.0000 1.0000 1.0000 1.000 1.000 100
198+ expr min lq mean median uq max neval
199+ splines::ns 4.9751 4.7263 4.6571 4.4456 4.8987 5.274 100
200+ splines2::nsp 1.0000 1.0000 1.0000 1.0000 1.0000 1.000 100
201201
202202The functions ` bSpline() ` and ` mSpline() ` produce periodic spline basis
203203functions based on B-splines and M-splines, respectively, when
@@ -225,9 +225,9 @@ microbenchmark(
225225
226226 Unit: relative
227227 expr min lq mean median uq max neval
228- pbs::pbs 4.1061 3.9837 3.37071 3.8543 3.6758 1.26136 100
228+ pbs::pbs 4.0864 3.9469 3.34075 3.8658 3.6311 1.23830 100
229229 splines2::bSpline 1.0000 1.0000 1.00000 1.0000 1.0000 1.00000 100
230- splines2::mSpline 1.1667 1.1493 0.97082 1.1416 1.1429 0.15675 100
230+ splines2::mSpline 1.1598 1.1350 0.95918 1.1516 1.1169 0.12212 100
231231
232232<details >
233233<summary >
0 commit comments