org.jscience.mathematics.analysis.chaos
Class MandelbrotMap

java.lang.Object
  extended by org.jscience.mathematics.analysis.chaos.MandelbrotMap
All Implemented Interfaces:
AbstractMapping, ComplexMapping, NumberMapping

public final class MandelbrotMap
extends java.lang.Object
implements ComplexMapping

The MandelbrotMap class provides an object that encapsulates the Mandelbrot map. zn+1 = zn2 + c.


Field Summary
static double CONVERGENT_BOUND
          A complex number z such that |z| > CONVERGENT_BOUND will diverge under this map.
 
Constructor Summary
MandelbrotMap(Complex aval)
          Constructs a Mandelbrot map.
MandelbrotMap(double aval)
          Constructs a Mandelbrot map.
 
Method Summary
 Complex getConstant()
          Returns the constant.
 Complex iterate(int n, Complex z)
          Iterates the map.
 double iterate(int n, double x)
          Iterates the map.
 Complex map(Complex z)
          Performs the mapping.
 double map(double x)
          Performs the mapping.
 Complex map(double real, double imag)
          Performs the mapping.
 java.lang.Number map(java.lang.Number z)
          DOCUMENT ME!
 void setConstant(Complex aval)
          Sets the constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONVERGENT_BOUND

public static final double CONVERGENT_BOUND
A complex number z such that |z| > CONVERGENT_BOUND will diverge under this map.

See Also:
Constant Field Values
Constructor Detail

MandelbrotMap

public MandelbrotMap(double aval)
Constructs a Mandelbrot map.

Parameters:
aval - the value of the constant.

MandelbrotMap

public MandelbrotMap(Complex aval)
Constructs a Mandelbrot map.

Parameters:
aval - the value of the constant.
Method Detail

getConstant

public Complex getConstant()
Returns the constant.

Returns:
DOCUMENT ME!

setConstant

public void setConstant(Complex aval)
Sets the constant.

Parameters:
aval - DOCUMENT ME!

map

public double map(double x)
Performs the mapping.

Parameters:
x - a double
Returns:
DOCUMENT ME!

map

public Complex map(Complex z)
Performs the mapping.

Specified by:
map in interface ComplexMapping
Parameters:
z - a complex number.
Returns:
DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.Domain.

map

public Complex map(double real,
                   double imag)
Performs the mapping.

Parameters:
real - DOCUMENT ME!
imag - DOCUMENT ME!
Returns:
DOCUMENT ME!

map

public java.lang.Number map(java.lang.Number z)
DOCUMENT ME!

Specified by:
map in interface NumberMapping
Parameters:
z - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.Domain.

iterate

public double iterate(int n,
                      double x)
Iterates the map.

Parameters:
n - the number of iterations
x - the initial value
Returns:
DOCUMENT ME!

iterate

public Complex iterate(int n,
                       Complex z)
Iterates the map.

Parameters:
n - the number of iterations
z - the initial value
Returns:
DOCUMENT ME!