public final class MandelbrotMap extends java.lang.Object implements ComplexMapping
| Modifier and Type | Field and Description |
|---|---|
static double |
CONVERGENT_BOUND
A complex number z such that |z| > CONVERGENT_BOUND
will diverge under this map.
|
| Constructor and Description |
|---|
MandelbrotMap(Complex aval)
Constructs a Mandelbrot map.
|
MandelbrotMap(double aval)
Constructs a Mandelbrot map.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final double CONVERGENT_BOUND
public MandelbrotMap(double aval)
aval - the value of the constant.public MandelbrotMap(Complex aval)
aval - the value of the constant.public Complex getConstant()
public void setConstant(Complex aval)
public double map(double x)
x - a doublepublic Complex map(Complex z)
map in interface ComplexMappingz - a complex number.public Complex map(double real, double imag)
map in interface ComplexMappingpublic double iterate(int n,
double x)
n - the number of iterationsx - the initial value