fractaldim: calculate the fractal dimension

View source: R/fractals.R

fractaldimR Documentation

calculate the fractal dimension

Description

Performs box counting on a matrix of 0s and 1s.

Usage

fractaldim(mat, plot = TRUE, ...)

Arguments

mat

a square matrix of 0s and 1s. Size must be a power of 2.

plot

logical. If TRUE, plots the results on a log-log scale.

...

optional arguments to the generic points function.

Value

an object of class lm

Examples

g <- sierpinski(n=5)
fractaldim(g)

geostats documentation built on Jan. 7, 2023, 5:32 p.m.