Skip to content

Commit

Permalink
Refresh README
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjie2wang committed Feb 27, 2025
1 parent 14e4b2c commit 22a4e8b
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ microbenchmark(

Unit: relative
expr min lq mean median uq max neval
splines::bs 3.7912 3.4712 3.0323 3.0225 2.7241 2.2102 100
splines::splineDesign 2.2886 2.0211 2.0447 1.9515 1.8277 7.5002 100
splines::bs 3.5101 2.7677 2.4657 2.8721 2.2682 1.5334 100
splines::splineDesign 2.4324 1.9049 1.9833 2.1624 1.7941 8.4094 100
splines2::bSpline 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 100

Similarly, for derivatives of B-splines, `splines2::dbs()` provides
Expand All @@ -143,7 +143,7 @@ microbenchmark(

Unit: relative
expr min lq mean median uq max neval
splines::splineDesign 2.6852 2.5206 2.2538 2.3575 2.3279 1.8326 100
splines::splineDesign 2.7082 2.4949 2.0586 2.0985 2.1164 1.5585 100
splines2::dbs 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 100

The **splines** package does not contain an implementation for integrals
Expand All @@ -167,9 +167,9 @@ microbenchmark(
```

Unit: relative
expr min lq mean median uq max neval
ibs::ibs 32.03 31.591 29.248 29.421 25.925 34.233 100
splines2::ibs 1.00 1.000 1.000 1.000 1.000 1.000 100
expr min lq mean median uq max neval
ibs::ibs 53.484 45.639 42.991 42.464 39.945 30.853 100
splines2::ibs 1.000 1.000 1.000 1.000 1.000 1.000 100

The function `ibs::ibs()` returns the integrated B-splines instead of
the integrals of spline basis functions. Thus, we applied the same
Expand All @@ -195,9 +195,9 @@ microbenchmark(
```

Unit: relative
expr min lq mean median uq max neval
splines::ns 5.0293 4.587 4.7114 4.437 5.1284 5.518 100
splines2::nsp 1.0000 1.000 1.0000 1.000 1.0000 1.000 100
expr min lq mean median uq max neval
splines::ns 5.8949 5.4165 4.8466 4.5983 5.1892 3.7201 100
splines2::nsp 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 100

The functions `bSpline()` and `mSpline()` produce periodic spline basis
functions based on B-splines and M-splines, respectively, when
Expand Down Expand Up @@ -225,9 +225,9 @@ microbenchmark(

Unit: relative
expr min lq mean median uq max neval
pbs::pbs 4.1600 4.0790 3.8862 3.9842 3.8213 3.73872 100
pbs::pbs 4.2867 3.8656 2.6849 3.6822 2.8756 1.00982 100
splines2::bSpline 1.0000 1.0000 1.0000 1.0000 1.0000 1.00000 100
splines2::mSpline 1.1416 1.1377 0.9660 1.1702 1.1424 0.12893 100
splines2::mSpline 1.0787 1.0477 0.8013 1.1933 1.0466 0.11527 100

<details>
<summary>
Expand All @@ -238,7 +238,7 @@ Session Information for Benchmarks
sessionInfo()
```

R version 4.4.0 (2024-04-24)
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Arch Linux

Expand All @@ -251,20 +251,20 @@ sessionInfo()
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

time zone: America/New_York
time zone: America/Indianapolis
tzcode source: system (glibc)

attached base packages:
[1] splines stats graphics grDevices utils datasets methods base

other attached packages:
[1] splines2_0.5.3 microbenchmark_1.4.10
[1] splines2_0.5.4 microbenchmark_1.5.0

loaded via a namespace (and not attached):
[1] digest_0.6.36 codetools_0.2-20 ibs_1.4 fastmap_1.2.0 xfun_0.45
[6] pbs_1.1 knitr_1.47 htmltools_0.5.8.1 rmarkdown_2.27 cli_3.6.3
[11] compiler_4.4.0 tools_4.4.0 evaluate_0.24.0 Rcpp_1.0.12 yaml_2.3.8
[16] rlang_1.1.4
[1] digest_0.6.37 codetools_0.2-20 ibs_1.4 fastmap_1.2.0 xfun_0.51
[6] pbs_1.1 knitr_1.49 htmltools_0.5.8.1 rmarkdown_2.29 cli_3.6.4
[11] compiler_4.4.2 tools_4.4.2 evaluate_1.0.3 Rcpp_1.0.14 yaml_2.3.10
[16] rlang_1.1.5

</details>

Expand Down

0 comments on commit 22a4e8b

Please sign in to comment.