org.jscience.mathematics.analysis.chaos
Class MandelbrotSet

java.lang.Object
  extended by org.jscience.mathematics.analysis.chaos.MandelbrotSet

public final class MandelbrotSet
extends java.lang.Object

The MandelbrotSet class provides an object that encapsulates the Mandelbrot set.


Constructor Summary
MandelbrotSet()
          Constructs a Mandelbrot set.
 
Method Summary
 int isMember(Complex z, int maxIter)
          Returns 0 if z is a member of this set, else the number of iterations it took for z to diverge to infinity.
 int isMember(double zRe, double zIm, int maxIter)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MandelbrotSet

public MandelbrotSet()
Constructs a Mandelbrot set.

Method Detail

isMember

public int isMember(Complex z,
                    int maxIter)
Returns 0 if z is a member of this set, else the number of iterations it took for z to diverge to infinity.

Parameters:
z - DOCUMENT ME!
maxIter - DOCUMENT ME!
Returns:
DOCUMENT ME!

isMember

public int isMember(double zRe,
                    double zIm,
                    int maxIter)
DOCUMENT ME!

Parameters:
zRe - DOCUMENT ME!
zIm - DOCUMENT ME!
maxIter - DOCUMENT ME!
Returns:
DOCUMENT ME!