Multilevel B-Spline Approximation

Functions to interpolate irregularly and regularly spaced data using Multilevel B-spline Approximation (MBA). Functions call portions of the SINTEF Multilevel B-spline Library written by Øyvind Hjelle which implements methods developed by Lee, Wolberg and Shin (1997; ).


MBA

CRAN status R-CMD-check pkgdown

MBA package hex logo

MBA interpolates irregularly and regularly spaced data using multilevel B-spline approximation. The package provides functions for estimating smooth surfaces on a regular grid and for predicting surface values at arbitrary point locations.


Installation

Install the CRAN release with:

install.packages("MBA")

Install the development version from GitHub with:

remotes::install_github("finleya/MBA")

Basic Use

library(MBA)

data(LIDAR)
set.seed(1)

train <- sample(seq_len(nrow(LIDAR)), 500)
xyz <- LIDAR[train, ]

surf <- mba.surf(xyz, no.X = 100, no.Y = 100, extend = TRUE)
image(surf$xyz.est, xaxs = "r", yaxs = "r")

pts <- mba.points(
  xyz = xyz,
  xy.est = LIDAR[-train, c("x", "y")],
  h = 8,
  verbose = FALSE
)

head(pts$xyz.est)

Functionality

The package provides:

  • Surface interpolation from bivariate scattered data with mba.surf().
  • Point prediction from fitted multilevel B-spline approximations with mba.points().
  • Optional convex-hull masking for grid surfaces.
  • Optional sp output for gridded surfaces.
  • The LIDAR example dataset for interpolation examples.

Citation

The MBA implementation calls portions of the SINTEF Multilevel B-spline Library written by Oyvind Hjelle and implements methods developed in:

Lee, S., Wolberg, G., and Shin, S. Y. (1997). Scattered data interpolation with multilevel B-splines. IEEE Transactions on Visualization and Computer Graphics, 3(3), 229-244. doi:10.1109/2945.620490.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("MBA")

0.1-3 by Andrew Finley, 5 months ago


https://github.com/finleya/MBA, https://finleya.github.io/MBA/


Report a bug at https://github.com/finleya/MBA/issues


Browse source code at https://github.com/cran/MBA


Authors: Andrew Finley [aut, cre] , Sudipto Banerjee [aut] , Øyvind Hjelle [aut] , Roger Bivand [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Suggests sp, testthat

Linking to BH


Imported by CoSMoS, GEOmap, Rquake, StatDA, autoimage, bamlss, intamap, nimblewomble, pspatreg, spStack, staRdom, visualpred.

Suggested by DataVisualizations, R2BayesX, eemR, shotGroups, spBPS, spBayes, spFFBS.


See at CRAN