fractaldim {geostats}R 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)

[Package geostats version 1.6 Index]