Learn R Programming

future (version 1.1.1)

mandelbrot: Mandelbrot convergence counts

Description

Mandelbrot convergence counts

Usage

mandelbrot(...)

Arguments

Z
A complex matrix for which convergence counts should be calculated.
xmid, ymid, side, resolution
Alternative specification of the complex plane Z, where mean(Re(Z)) == xmid, mean(Im(Z)) == ymid, diff(range(Re(Z))) == side, diff(range(Im(Z))) == side, and dim(Z) == c(resolution, resolution).
maxIter
Maximum number of iterations per bin.
tau
A threshold; the radius when calling divergence (Mod(z) > tau).

Value

Returns an integer matrix (of class Mandelbrot) with non-negative counts.

Examples

Run this code
counts <- mandelbrot(xmid=-0.75, ymid=0, side=3)
str(counts)
## Not run: 
# plot(counts)
# ## End(Not run)

## Not run: 
# demo("mandelbrot", package="future", ask=FALSE)
# ## End(Not run)

Run the code above in your browser using DataLab