Description Usage Arguments Author(s) Examples
Takes a hyperframe and calcualtes the K functions and the weights for that hyperframe given the edge correction and weights type.
| 1 | constructHyperframe(hyper, r, correction, pppx='pppx', weights.type)
 | 
| hyper | A hyperframe that must have an element called pppx | 
| r | distances at which to compute r | 
| correction | The edge correction by name - options are those for Kest in spatstat. Defaults to 'border' | 
| pppx | The name of the element with the ppp object. Experimental. | 
| weights.type | The type of regression weights to be calculated. Options are 'nx', 'nx_A', 'nx2', 'nx2_A', 'sqrtnxny', 'nxny', 'nxny_A', 'sqrtnxny_A' | 
Robert Bagchi Maintainer: Robert Bagchi <robert.bagchi@uconn.edu>
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
## The function is currently defined as
function (hyper, r, correction, weights.type) 
{
    if (min(r) > 0) 
        r <- c(0, r)
    if (!all(c("pppx") %in% names(hyper))) {
        stop("hyperframe object must include 'pppx' element")
    }
    hyper$K <- with.hyperframe(hyper, Kest(pppx, r = r, correction = correction, 
        ratio = TRUE))
    hyper$wts <- with.hyperframe(hyper, list(kfunc.weights.calc(pppx, 
        r = K$r, correction = correction, type = weights.type)))
    minsamp <- sapply(with.hyperframe(hyper, list(kfunc.weights.calc(pppx, 
        r = K$r, correction = correction, type = "nx"))), function(x) min(x[[1]]))
    hyper$minsamp <- minsamp
    return(hyper)
  }
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.