Package MBA. February 19, 2015. Index 7. Canopy LIDAR data



Similar documents
Package retrosheet. April 13, 2015

Package tagcloud. R topics documented: July 3, 2015

Package empiricalfdr.deseq2

Package neuralnet. February 20, 2015

Package TSfame. February 15, 2013

How To Use Design Mentor

Package sendmailr. February 20, 2015

Package PACVB. R topics documented: July 10, Type Package

Package treemap. February 15, 2013

Package bigdata. R topics documented: February 19, 2015

Package EstCRM. July 13, 2015

Package erp.easy. September 26, 2015

Package missforest. February 20, 2015

Package wordcloud. R topics documented: February 20, 2015

Package ChannelAttribution

Package SHELF. February 5, 2016

LiDAR Point Cloud Processing with

Package survpresmooth

Package CoImp. February 19, 2015

Package hazus. February 20, 2015

Package bigrf. February 19, 2015

Package decompr. August 17, 2016

Package smoothhr. November 9, 2015

Package CRM. R topics documented: February 19, 2015

CSE 167: Lecture 13: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Package plan. R topics documented: February 20, 2015

Package hoarder. June 30, 2015

Package benford.analysis

Package fastghquad. R topics documented: February 19, 2015

Package cpm. July 28, 2015

Package biganalytics

An Introduction to Point Pattern Analysis using CrimeStat

B2.53-R3: COMPUTER GRAPHICS. NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions.

Package cgdsr. August 27, 2015

Package TRADER. February 10, 2016

Curve Fitting with Maple

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

Using splines in regression

Package brewdata. R topics documented: February 19, Type Package

R Graphics Cookbook. Chang O'REILLY. Winston. Tokyo. Beijing Cambridge. Farnham Koln Sebastopol

Scatter Plots with Error Bars

Cluster Analysis using R

Package ggrepel. February 8, 2016

FUNCTIONAL DATA ANALYSIS: INTRO TO R s FDA

Package RCassandra. R topics documented: February 19, Version Title R/Cassandra interface

Package fimport. February 19, 2015

Package hier.part. February 20, Index 11. Goodness of Fit Measures for a Regression Hierarchy

Package png. February 20, 2015

Environmental Remote Sensing GEOG 2021

Regression Clustering

Natural cubic splines

Journal of Statistical Software

Package polynom. R topics documented: June 24, Version 1.3-8

Package sjdbc. R topics documented: February 20, 2015

Package ATE. R topics documented: February 19, Type Package Title Inference for Average Treatment Effects using Covariate. balancing.

Package globe. August 29, 2016

Package uptimerobot. October 22, 2015

Lesson 15 - Fill Cells Plugin

Files Used in this Tutorial

Package PRISMA. February 15, 2013

Package translater. R topics documented: February 20, Type Package

Package changepoint. R topics documented: November 9, Type Package Title Methods for Changepoint Detection Version 2.

Package MDM. February 19, 2015

Package MixGHD. June 26, 2015

Package dunn.test. January 6, 2016

Package LexisPlotR. R topics documented: April 4, Type Package

Package RIGHT. March 30, 2015

5 Correlation and Data Exploration

Package pmr. May 15, 2015

Tutorial 3: Graphics and Exploratory Data Analysis in R Jason Pienaar and Tom Miller

Introduction to GIS (Basics, Data, Analysis) & Case Studies. 13 th May Content. What is GIS?

3D Analysis and Surface Modeling

Package HadoopStreaming

The KaleidaGraph Guide to Curve Fitting

Package mcmcse. March 25, 2016

Modeling Curves and Surfaces

Package trimtrees. February 20, 2015

Package zic. September 4, 2015

Package metafuse. November 7, 2015

Package colortools. R topics documented: February 19, Type Package

Hydrogeological Data Visualization

1 Review of Least Squares Solutions to Overdetermined Systems

CS1112 Spring 2014 Project 4. Objectives. 3 Pixelation for Identity Protection. due Thursday, 3/27, at 11pm

Package multivator. R topics documented: February 20, Type Package Title A multivariate emulator Version Depends R(>= 2.10.

MATLAB DFS. Interface Library. User Guide

Dhiren Bhatia Carnegie Mellon University

Classification and Regression by randomforest

Package httprequest. R topics documented: February 20, 2015

RnavGraph: A visualization tool for navigating through high-dimensional data

Package GSA. R topics documented: February 19, 2015

Spline Toolbox Release Notes

Location matters. 3 techniques to incorporate geo-spatial effects in one's predictive model

Package sudoku. February 20, 2015

Transcription:

Version 0.0-8 Date 2014-4-28 Title Multilevel B-spline Approximation Package MBA February 19, 2015 Author Andrew O. Finley <finleya@msu.edu>, Sudipto Banerjee <sudiptob@biostat.umn.edu> Maintainer Andrew O. Finley <finleya@msu.edu> Depends R (>= 2.8.0), sp LinkingTo BH Description Scattered data interpolation with Multilevel B-Splines License GPL (>= 2) Repository CRAN Date/Publication 2014-04-29 07:59:02 NeedsCompilation yes R topics documented: LIDAR........................................... 1 mba.points.......................................... 2 mba.surf........................................... 4 Index 7 LIDAR Canopy LIDAR data Description This is a small portion of Light Detection and Ranging (LIDAR) data taken over a forested landscape in Wisconsin, USA. 1

2 mba.points Usage data(lidar) Format A data frame containing 10123 rows and 3 columns corresponding to longitude, latitude, and elevation. Source Data provided by: Dr. Paul V. Bolstad, Department of Forest Resources, University of Minnesota, <pbolstad@umn.edu> mba.points Point approximation from bivariate scattered data using multilevel B- splines Description The function mba.points returns points on a surface approximated from a bivariate scatter of points using multilevel B-splines. Usage mba.points(xyz, xy.est, n = 1, m = 1, h = 8, extend = TRUE, verbose = TRUE,...) Arguments xyz xy.est n m a n 3 matrix or data frame, where n is the number of observed points. The three columns correspond to point x, y, and z coordinates. The z value is the response at the given x, y coordinates. a p 2 matrix or data frame, where p is the number of points for which to estimate a z. The two columns correspond to x, y point coordinates where a z estimate is required. initial size of the spline space in the hierarchical construction along the x axis. If the rectangular domain is a square, n = m = 1 is recommended. If the x axis is k times the length of the y axis, n = 1, m = k is recommended. The default is n = 1. initial size of the spline space in the hierarchical construction along the y axis. If the y axis is k times the length of the x axis, m = 1, n = k is recommended. The default is m = 1. h Number of levels in the hierarchical construction. If, e.g., n = m = 1 and h = 8, the resulting spline surface has a coefficient grid of size 2 h + 3 = 259 in each direction of the spline surface. See references for additional information.

mba.points 3 Value extend verbose if FALSE, points in xy.est that fall outside of the domain defined by xyz are set to NA with a warning; otherwise, the domain is extended to accommodate points in xy.est with a warning. if TRUE, warning messages are printed to the screen.... currently no additional arguments. List with 1 component: xyz.est a p 3 matrix. The first two columns are xy.est and the third column is the corresponding z estimates. Note The function mba.points relies on the Multilevel B-spline Approximation (MBA) algorithm. The underlying code was developed at SINTEF Applied Mathematics by Dr. Oyvind Hjelle. Dr. Oyvind Hjelle based the algorithm on the paper by the originators of Multilevel B-splines: S. Lee, G. Wolberg, and S. Y. Shin. Scattered data interpolation with multilevel B-splines. IEEE Transactions on Visualization and Computer Graphics, 3(3):229-244, 1997. See Also For additional documentation and references please see: www.sintef.no/upload/ikt/9011/geometri/mba/mba_doc/index.html. This minor portion of the MBA codebase was ported by Andrew O. Finley <finleya@msu.edu>. mba.surf Examples data(lidar) ##split the LIDAR dataset into training and validation sets tr <- sample(1:nrow(lidar),trunc(0.5*nrow(lidar))) ##look at how smoothing changes z-approximation, ##careful the number of B-spline surface coefficients ##increases at ~2^h in each direction for(i in 1:10){ mba.pts <- mba.points(lidar[tr,], LIDAR[-tr,c("x","y")], h=i)$xyz.est print(sum(abs(lidar[-tr,"z"]-mba.pts[,"z"]))/nrow(mba.pts)) } ## Not run: ##rgl or scatterplot3d libraries can be fun library(rgl) ##exaggerate z a bit for effect and take a smaller subset of LIDAR LIDAR[,"z"] <- 10*LIDAR[,"z"]

4 mba.surf tr <- sample(1:nrow(lidar),trunc(0.99*nrow(lidar))) ##get the "true" surface mba.int <- mba.surf(lidar[tr,], 100, 100, extend=true)$xyz.est open3d() surface3d(mba.int$x, mba.int$y, mba.int$z) ##now the point estimates mba.pts <- mba.points(lidar[tr,], LIDAR[-tr,c("x","y")])$xyz.est spheres3d(mba.pts[,"x"], mba.pts[,"y"], mba.pts[,"z"], radius=5, color="red") ## End(Not run) mba.surf Surface approximation from bivariate scattered data using multilevel B-splines Description The function mba.surf returns a surface approximated from a bivariate scatter of data points using multilevel B-splines. Usage mba.surf(xyz, no.x, no.y, n = 1, m = 1, h = 8, extend=false, sp=false,...) Arguments xyz no.x no.y n m a n 3 matrix or data frame, where n is the number of observed points. The three columns correspond to point x, y, and z coordinates. The z value is the response at the given x, y coordinates. resolution of the approximated surface along the x axis. resolution of the approximated surface along the y axis. initial size of the spline space in the hierarchical construction along the x axis. If the rectangular domain is a square, n = m = 1 is recommended. If the x axis is k times the length of the y axis, n = 1, m = k is recommended. The default is n = 1. initial size of the spline space in the hierarchical construction along the y axis. If the y axis is k times the length of the x axis, m = 1, n = k is recommended. The default is m = 1. h Number of levels in the hierarchical construction. If, e.g., n = m = 1 and h = 8, the resulting spline surface has a coefficient grid of size 2 h + 3 = 259 in each direction of the spline surface. See references for additional information.

mba.surf 5 extend sp if FALSE, a convex hull is computed for the input points and all matrix elements in z that have centers outside of this polygon are set to NA; otherwise, all elements in z are given an estimated z value. if TRUE, the resulting surface is returned as a SpatialPixelsDataFrame object; otherwise, the surface is in image format.... b.box is an optional vector to sets the bounding box. The vector s elements are minimum x, maximum x, minimum y, and maximum y, respectively. Value List with 8 component: xyz.est no.x no.y n m h extend sp b.box a list that contains vectors x, y and the no.x no.y matrix z of estimated z-values. no.x from arguments. no.y from arguments. n from arguments. m from arguments. h from arguments. extend from arguments. sp from arguments. b.box defines the bounding box over which z is estimated. Note If no.x!= no.y then use sp=true for compatibility with the image function. The function mba.surf relies on the Multilevel B-spline Approximation (MBA) algorithm. The underlying code was developed at SINTEF Applied Mathematics by Dr. Oyvind Hjelle. Dr. Oyvind Hjelle based the algorithm on the paper by the originators of Multilevel B-splines: S. Lee, G. Wolberg, and S. Y. Shin. Scattered data interpolation with multilevel B-splines. IEEE Transactions on Visualization and Computer Graphics, 3(3):229 244, 1997. For additional documentation and references please see: www.sintef.no/upload/ikt/9011/geometri/mba/mba_doc/index.html. This minor portion of the MBA codebase was ported by Andrew O. Finley <finleya@msu.edu>. See Also mba.points

6 mba.surf Examples ## Not run: data(lidar) mba.int <- mba.surf(lidar, 300, 300, extend=true)$xyz.est ##Image plot image(mba.int, xaxs="r", yaxs="r") ##Perspective plot persp(mba.int, theta = 135, phi = 30, col = "green3", scale = FALSE, ltheta = -120, shade = 0.75, expand = 10, border = NA, box = FALSE) ##For a good time I recommend using rgl library(rgl) ex <- 10 x <- mba.int[[1]] y <- mba.int[[2]] z <- ex*mba.int[[3]] zlim <- range(z) zlen <- zlim[2] - zlim[1] + 1 colorlut <- heat.colors(as.integer(zlen)) col <- colorlut[ z-zlim[1]+1 ] open3d() surface3d(x, y, z, color=col, back="lines") ## End(Not run)

Index Topic datasets LIDAR, 1 Topic dplot mba.points, 2 mba.surf, 4 Topic smooth mba.points, 2 mba.surf, 4 LIDAR, 1 mba.points, 2, 5 mba.surf, 3, 4 7