infpp.fractal
Class SimpleDoublePrecisionMandelbrotGenerator

java.lang.Object
  extended by infpp.fractal.DoublePrecisionFractalGenerator
      extended by infpp.fractal.SimpleDoublePrecisionMandelbrotGenerator
All Implemented Interfaces:
FractalGenerator

public class SimpleDoublePrecisionMandelbrotGenerator
extends DoublePrecisionFractalGenerator

The SimpleDoublePrecisionMandelbrotGenerator provides an implementation for calculating the number of required iterations to determine the divergence of the sequence of points obtained by the recursion z1 := 1, zn + 1 = (zn)2 + c where c is a point determined by screen coordinates. This implementation operates with standard double precision arithmetic.

Author:
both

Constructor Summary
SimpleDoublePrecisionMandelbrotGenerator(int maxIterations)
          Constructs a new SimpleDoublePrecisionMandelbrotGenerator.
 
Method Summary
 int getNumberOfIterationsAtPixel(int x, int y)
          Calculates the number of required iterations to determine the divergence of the sequence of points obtained by the recursion z1 := 1, zn + 1 = (zn)2 + c where c is the result of the conversion of the specified pixel to a complex number.
 
Methods inherited from class infpp.fractal.DoublePrecisionFractalGenerator
calculateComplexFromScreenCoordinates, getComplexOrigin, getRealDimension, getScreenHeight, getScreenWidth, setComplexOrigin, setRealDimension, setScreenDimension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDoublePrecisionMandelbrotGenerator

public SimpleDoublePrecisionMandelbrotGenerator(int maxIterations)
Constructs a new SimpleDoublePrecisionMandelbrotGenerator.

Parameters:
maxIterations - the maximum number of iterations to use
Method Detail

getNumberOfIterationsAtPixel

public int getNumberOfIterationsAtPixel(int x,
                                        int y)
Calculates the number of required iterations to determine the divergence of the sequence of points obtained by the recursion z1 := 1, zn + 1 = (zn)2 + c where c is the result of the conversion of the specified pixel to a complex number.

Parameters:
x - the x coordinate of the specified pixel
y - the y coordinate of the specified pixel
Returns:
the number of required iterations
See Also:
FractalGenerator.getNumberOfIterationsAtPixel(int, int)