pkgdown/mathjax-config.html

Skip to contents

Compute summary statistics for an AoE classification result, including counts and proportions of core vs halo points per support.

Usage

aoe_summary(x)

Arguments

x

An sf object returned by aoe().

Value

A data frame with one row per support, containing:

support_id

Support identifier

n_total

Total number of supported points

n_core

Number of core points

n_halo

Number of halo points

prop_core

Proportion of points that are core

prop_halo

Proportion of points that are halo

Examples

library(sf)

support <- st_as_sf(
  data.frame(id = 1),
  geometry = st_sfc(st_polygon(list(
    cbind(c(0, 10, 10, 0, 0), c(0, 0, 10, 10, 0))
  ))),
  crs = 32631
)

pts <- st_as_sf(
  data.frame(id = 1:4),
  geometry = st_sfc(
    st_point(c(5, 5)),
    st_point(c(2, 2)),
    st_point(c(15, 5)),
    st_point(c(12, 5))
  ),
  crs = 32631
)

result <- aoe(pts, support)
aoe_summary(result)