|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSci.maths.chaos.MandelbrotMap
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. |
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 |
public static final double CONVERGENT_BOUND
Constructor Detail |
public MandelbrotMap(double aval)
aval
- the value of the constant.public MandelbrotMap(Complex aval)
aval
- the value of the constant.Method Detail |
public Complex getConstant()
public void setConstant(Complex aval)
public double map(double x)
x
- a doublepublic Complex map(Complex z)
map
in interface ComplexMapping
z
- a complex number.public Complex map(double real, double imag)
map
in interface ComplexMapping
public double iterate(int n, double x)
n
- the number of iterationsx
- the initial valuepublic Complex iterate(int n, Complex z)
n
- the number of iterationsz
- the initial value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |