Package: fastlpr 1.0.1

Ying Wang
fastlpr: Fast Local Polynomial Regression and Kernel Density Estimation
Non-Uniform Fast Fourier Transform ('NUFFT')-accelerated local polynomial regression and kernel density estimation for large, scattered, or complex-valued datasets. Provides automatic bandwidth selection via Generalized Cross-Validation (GCV) for regression and Likelihood Cross-Validation (LCV) for density estimation. This is the 'R' port of the 'fastLPR' 'MATLAB'/'Python' toolbox, achieving O(N + M log M) computational complexity through custom 'NUFFT' implementation with Gaussian gridding. Supports 1D/2D/3D data, complex-valued responses, heteroscedastic variance estimation, and confidence interval computation. Performance optimized with vectorized 'R' code and compiled helpers via 'Rcpp'/'RcppArmadillo'. Extends the 'FKreg' toolbox of Wang et al. (2022) <doi:10.48550/arXiv.2204.07716> with 'Python' and 'R' ports. Applied in Li et al. (2022) <doi:10.1016/j.neuroimage.2022.119190>. Uses 'NUFFT' methods based on Greengard and Lee (2004) <doi:10.1137/S003614450343200X>, binning-accelerated kernel estimation of Wand (1994) <doi:10.1080/10618600.1994.10474656>, and local polynomial regression framework of Fan and Gijbels (1996, ISBN:978-0412983214).
Authors:
fastlpr_1.0.1.tar.gz
fastlpr_1.0.1.tar.gz(r-4.7-arm64)fastlpr_1.0.1.tar.gz(r-4.7-x86_64)fastlpr_1.0.1.tar.gz(r-4.6-arm64)fastlpr_1.0.1.tar.gz(r-4.6-x86_64)
fastlpr_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
fastlpr/json (API)
NEWS
| # Install 'fastlpr' in R: |
| install.packages('fastlpr', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rigelfalcon/fastlpr/issues
Last updated from:957f391906. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 199 | ||
| linux-devel-x86_64 | OK | 179 | ||
| source / vignettes | OK | 198 | ||
| linux-release-arm64 | OK | 206 | ||
| linux-release-x86_64 | OK | 188 | ||
| wasm-release | OK | 128 |
Exports:cv_fastkdecv_fastlprfastkde_plotfastkde_plot_bandwidthfastlpr_intervalfastlpr_plotfastlpr_plot_intervalfastlpr_predictget_hlistget_rcpp_infois_fastkde_resultis_fastlpr_resultmultispacercpp_availableset_defaultszscore
Dependencies:RcppRcppArmadillo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Fast Kernel Density Estimation with automatic bandwidth selection | cv_fastkde |
| Fast Local Polynomial Regression with automatic bandwidth selection | cv_fastlpr |
| Plot KDE results | fastkde_plot |
| Plot Bandwidth Selection Diagnostics for KDE | fastkde_plot_bandwidth |
| Compute Confidence or Prediction Intervals | fastlpr_interval |
| Plot regression results | fastlpr_plot |
| Plot Confidence or Prediction Interval Bands | fastlpr_plot_interval |
| Predict at new points | fastlpr_predict |
| Generate bandwidth candidates for cross-validation | get_hlist |
| Get Rcpp Information | get_rcpp_info |
| Check if Object is a fastkde_result | is_fastkde_result |
| Check if Object is a fastlpr_result | is_fastlpr_result |
| Generate multi-dimensional grid | multispace |
| Check if Rcpp Acceleration is Available | rcpp_available |
| Set default options | set_defaults |
| Z-score normalization | zscore |