JSci.maths.chaos
Class CantorDust
java.lang.Object
JSci.maths.chaos.CantorDust
public abstract class CantorDust
- extends java.lang.Object
The CantorDust class provides an object that encapsulates the Cantor dust fractal.
Method Summary |
protected abstract void |
eraseLine(double start,
double end)
Erases a line segment. |
double |
hausdorffDimension()
|
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 |
CantorDust
public CantorDust()
hausdorffDimension
public double hausdorffDimension()
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.