Mean of related circumscribing circle (Shape metric)
lsm_c_circle_mn(landscape, directions)# S3 method for RasterLayer
lsm_c_circle_mn(landscape, directions = 8)
# S3 method for RasterStack
lsm_c_circle_mn(landscape, directions = 8)
# S3 method for RasterBrick
lsm_c_circle_mn(landscape, directions = 8)
# S3 method for stars
lsm_c_circle_mn(landscape, directions = 8)
# S3 method for list
lsm_c_circle_mn(landscape, directions = 8)
Raster* Layer, Stack, Brick or a list of rasterLayers.
The number of directions in which patches should be connected: 4 (rook's case) or 8 (queen's case).
tibble
$$CIRCLE_{MN} = mean(CIRCLE[patch_{ij}])$$ where \(CIRCLE[patch_{ij}]\) is the related circumscribing circle of each patch.
CIRCLE_MN is a 'Shape metric' and summarises each class as the mean of the related circumscribing circle of all patches belonging to class i. CIRCLE describes the ratio between the patch area and the smallest circumscribing circle of the patch and characterises the compactness of the patch.
McGarigal, K., SA Cushman, and E Ene. 2012. FRAGSTATS v4: Spatial Pattern Analysis Program for Categorical and Continuous Maps. Computer software program produced by the authors at the University of Massachusetts, Amherst. Available at the following web site: http://www.umass.edu/landeco/research/fragstats/fragstats.html
Baker, W. L., and Y. Cai. 1992. The r.le programs for multiscale analysis of landscape structure using the GRASS geographical information system. Landscape Ecology 7: 291-302.
Based on C++ code from Project Nayuki (https://www.nayuki.io/page/smallest-enclosing-circle).
lsm_p_circle
,
mean
,
lsm_c_circle_sd
,
lsm_c_circle_cv
,
lsm_l_circle_mn
,
lsm_l_circle_sd
,
lsm_l_circle_cv
# NOT RUN {
lsm_c_circle_mn(landscape)
# }
Run the code above in your browser using DataCamp Workspace