cyclicCellularAutomata: Cyclic Cellular Automata

cyclicCellularAutomataR Documentation

Cyclic Cellular Automata

Description

Functions to calculate cyclic cellular automata

Usage

runCCA(
  input,
  image = NULL,
  numSteps = 10,
  maxNum = 7,
  nbhdType = "VN",
  range = 1,
  threshold = 1
)

randomInitialCCA(maxNum = 7, xSize = 100, ySize = 100)

makeCCA(input = NULL, .abcd = c("a", "d"), ...)

Arguments

input

a matrix

image

a matrix

numSteps

The number of iterations of the automata.

maxNum

The number of values a cell can have

nbhdType

The type of neighbourhood

range

the size of the neighbourhood

threshold

the requirement to advance a cell

xSize, ySize

size of a randomly generated starting grid

.abcd

controls which functions are action, build, camera or display. Default is ("a","d").

...

parameters passed to the component and the component functions. See "details" for more information.

.plotting

logical vector of length two. Used for timing the functions runCCA and matrixToColours.

Value

makeCCA returns a component. runCCA returns a list containing the image. randomInitialCCA returns a matrix.


R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.