DeJongAttractor: Peter de Jong Attractors

DeJongAttractorR Documentation

Peter de Jong Attractors

Description

Functions to calculate the sequence of points given by the following dynamical system in order to draw the attractor of the system.

  • x[n+1]=sin(a*y[n])-cos(b*x[n])
  • y[n+1]=sin(c*x[n])-cos(d*y[n])

runDeJongAttractor calculates the attractor. makeDeJongAttractor makes a component that calculates and plots the Attractor.

ref is a vector of data references that are added to the p slot in the component

Usage

makeDeJongAttractor(type = "points", ...)

runDeJongAttractor(
  a = 3,
  b = 0.4,
  c = 2,
  d = 0.6,
  inputx = 0,
  inputy = 0,
  x = NULL,
  y = NULL,
  runTime = 1e+05,
  sampleSize = NULL,
  reuseInput = FALSE
)

Arguments

type

The name(s) of the plotting function(s) used to plot the component. Defaults to "points". This can also include the names of classes linked to a plotting function.

...

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

a, b, c, d

The four parameters of the attractor from the above equations.

Details

.frames, .plotting and .repeats control the run function

All other parameters are added to the p slot in the component. This can include graphical parameters for the plotting function(s) or the run function.

See Also

http://paulbourke.net/fractals/peterdejong/

Other 2dAttractors: CliffordAttractor, SvenssonAttractor

Examples

art=makeDeJongAttractor(cex=0.1,col=rgb(0,0,0,0.1))
##easyPlot(art,preserveAspectRatio=TRUE)

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