Skip to contents

Calculates the box-counting dimension of a polygon

Calculates self-similar box-counting dimensions

Calculates self-affine box-counting dimensions

Usage

bcd(k, type, l = seq(10000, 1e+05, 10000), plot = FALSE)

# S3 method for class 'self_similarity'
bcd(k, type = "s", l = seq(10000, 1e+05, 10000), plot = FALSE)

# S3 method for class 'self_affinity'
bcd(k, type = "a", l = seq(10000, 1e+05, 10000), plot = FALSE)

Arguments

k

Spatial Vector data as an `sf` object

type

One of 's', 'a' (representing self-similarity and self-affinity respectively) that is to be calculated

l

Numeric; represents the length of a side of a single square box of the grid to calculate box-counting dimension

plot

Logical; if true, a log-log plot of the number of cells used to cover the polygon vs the cell size will be plotted

Value

A numeric representing the box-counting dimension of the spatial feature, `k`.