R/adaptive.density.R

Defines functions adaptive.density

Documented in adaptive.density

#'
#'   adaptive.density.R
#'
#'   $Revision: 1.1 $  $Date: 2019/02/06 03:22:51 $
#'

adaptive.density <- function(X, ..., method=c("voronoi", "kernel")) {
  method <- match.arg(method)
  result <- switch(method,
                   voronoi = densityVoronoi(X, ...),
                   kernel  = densityAdaptiveKernel(X, ...))
  return(result)
}

Try the spatstat.core package in your browser

Any scripts or data that you put into this service are public.

spatstat.core documentation built on May 18, 2022, 9:05 a.m.