org.jscience.mathematics.analysis.chaos
Class CantorDust

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

public abstract class CantorDust
extends java.lang.Object

The CantorDust class provides an object that encapsulates the Cantor dust fractal.


Constructor Summary
CantorDust()
          Creates a new CantorDust object.
 
Method Summary
protected abstract  void eraseLine(double start, double end)
          Erases a line segment.
 double hausdorffDimension()
          DOCUMENT ME!
 void recurse(double start, double end, int n)
          The recursive algorithm for Cantor dust.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CantorDust

public CantorDust()
Creates a new CantorDust object.

Method Detail

hausdorffDimension

public double hausdorffDimension()
DOCUMENT ME!

Returns:
DOCUMENT ME!

recurse

public void recurse(double start,
                    double end,
                    int n)
The recursive algorithm for Cantor dust.

Parameters:
start - the start of the line.
end - the end of the line.
n - the number of recursions.

eraseLine

protected abstract void eraseLine(double start,
                                  double end)
Erases a line segment. This need not be an actual graphical operation, but some corresponding abstract operation.

Parameters:
start - DOCUMENT ME!
end - DOCUMENT ME!