public class MarkusLyapunovFractalIterator extends AFractalIterator
MarkusLyapunovFractalIterator
class provides a base class for Markus-Lyapunov fractals.AFractalIterator.EFractalType
fBifurcationAxisZ1, fBifurcationAxisZ2, fBifurcationOutlierPercentileOffset, fBifurcationPoints, fCalculateAdvancedColoring, fComplexHeight, fComplexWidth, fDualParameter, fEscapeRadius, fEscapeRadiusSqr, fExteriorGaussianIntegersTrapFactor, fExteriorOrbitTrapCrossStalksCentre, fExteriorOrbitTrapDiskCentre, fExteriorOrbitTrapDiskRadius, fExteriorOrbitTrapSineAdditiveFactor, fExteriorOrbitTrapSineMultiplicativeFactor, fExteriorOrbitTrapTangensAdditiveFactor, fExteriorOrbitTrapTangensMultiplicativeFactor, fExteriorStripingDensity, fFractalType, fInteriorGaussianIntegersTrapFactor, fInteriorOrbitTrapCrossStalksCentre, fInteriorOrbitTrapDiskCentre, fInteriorOrbitTrapDiskRadius, fInteriorOrbitTrapSineAdditiveFactor, fInteriorOrbitTrapSineMultiplicativeFactor, fInteriorOrbitTrapTangensAdditiveFactor, fInteriorOrbitTrapTangensMultiplicativeFactor, fInteriorStripingDensity, fInvertYAxis, fMaxBifurcationValue, fMaxNrOfIterations, fMinBifurcationValue, fNrOfBifurcationPoints, fNrOfBifurcationPointsPerOrbit, fNrOfBifurcationPointsToDiscard, fP1, fP1X, fP1Y, fP2, fP2X, fP2Y, fScreenBounds, fScreenHeight, fScreenWidth, fUseFixedNrOfIterations, fZ0, kInitialScreenBounds
Constructor and Description |
---|
MarkusLyapunovFractalIterator()
Constructs a
MarkusLyapunovFractalIterator object and initialises it with the default 'AB' sequence. |
Modifier and Type | Method and Description |
---|---|
protected org.sm.smtools.math.complex.ComplexNumber |
evaluateFractalFunction(org.sm.smtools.math.complex.ComplexNumber z,
org.sm.smtools.math.complex.ComplexNumber c)
Unused method.
|
java.lang.String |
getCustomFilenamePart()
Returns the root sequence in the custom filename part.
|
org.sm.smtools.math.complex.ComplexNumber |
getDefaultDualParameter()
Unused method.
|
double |
getDefaultEscapeRadius()
Unused method.
|
org.sm.smtools.math.complex.ComplexNumber |
getDefaultP1()
Returns the default upper-left corner in the complex plane.
|
org.sm.smtools.math.complex.ComplexNumber |
getDefaultP2()
Returns the default lower-right corner in the complex plane.
|
java.lang.String |
getFamilyName()
Returns the family name of this fractal.
|
java.lang.String |
getRootSequence()
Returns the root sequence that is used.
|
protected IterationResult |
iterate(org.sm.smtools.math.complex.ComplexNumber z,
org.sm.smtools.math.complex.ComplexNumber c,
boolean saveOrbit)
Helper method for a general iteration with the Markus-Lyapunov estimation algorithm.
|
protected void |
plainTextLoadCustomParameters(org.sm.smtools.util.TextFileParser tfp)
Loads custom fractal parameters from a plain-text file.
|
protected void |
plainTextSaveCustomParameters(org.sm.smtools.util.TextFileWriter tfw)
Saves custom fractal parameters to a plain-text file.
|
void |
setRootSequence(java.lang.String rootSequence)
Sets the root sequence to be used (a
String of A's and B's. |
protected void |
streamLoadCustomParameters(java.io.DataInputStream dataInputStream)
Loads custom fractal parameters from a file as a stream.
|
protected void |
streamSaveCustomParameters(java.io.DataOutputStream dataOutputStream)
Saves custom fractal parameters to a file as a stream.
|
autoDetermineMaxNrOfIterations, convertComplexNumberToScreenLocation, convertComplexNumberToScreenLocation, convertScreenLocationToComplexNumber, convertScreenLocationToComplexNumber, getBifurcationAxisZ1, getBifurcationAxisZ2, getBifurcationOutlierPercentileOffset, getBifurcationPoint, getCalculateAdvancedColoring, getCurrentZoomLevel, getDualParameter, getEscapeRadius, getExteriorGaussianIntegersTrapFactor, getExteriorOrbitTrapCrossStalksCentre, getExteriorOrbitTrapDiskCentre, getExteriorOrbitTrapDiskRadius, getExteriorOrbitTrapSineAdditiveFactor, getExteriorOrbitTrapSineMultiplicativeFactor, getExteriorOrbitTrapTangensAdditiveFactor, getExteriorOrbitTrapTangensMultiplicativeFactor, getExteriorStripingDensity, getFractalType, getInteriorGaussianIntegersTrapFactor, getInteriorOrbitTrapCrossStalksCentre, getInteriorOrbitTrapDiskCentre, getInteriorOrbitTrapDiskRadius, getInteriorOrbitTrapSineAdditiveFactor, getInteriorOrbitTrapSineMultiplicativeFactor, getInteriorOrbitTrapTangensAdditiveFactor, getInteriorOrbitTrapTangensMultiplicativeFactor, getInteriorStripingDensity, getInvertYAxis, getMainFractalOrbitStartingPoint, getMaxBifurcationValue, getMaxNrOfIterations, getMinBifurcationValue, getNrOfBifurcationPoints, getNrOfBifurcationPointsPerOrbit, getNrOfBifurcationPointsToDiscard, getP1, getP2, getScreenBounds, getScreenHeight, getScreenWidth, getUseFixedNrOfIterations, iterateBifurcationDiagram, iterateDualFractal, iterateDualFractal, iterateMainFractal, iterateMainFractal, plainTextLoadParameters, plainTextSaveParameters, resetMainFractalOrbitStartingPoint, setBifurcationAxisZ1, setBifurcationAxisZ2, setBifurcationOutlierPercentileOffset, setCalculateAdvancedColoring, setComplexBounds, setDualParameter, setEscapeRadius, setExteriorGaussianIntegersTrapFactor, setExteriorOrbitTrapCrossStalksCentre, setExteriorOrbitTrapDiskCentre, setExteriorOrbitTrapDiskRadius, setExteriorOrbitTrapSineAdditiveFactor, setExteriorOrbitTrapSineMultiplicativeFactor, setExteriorOrbitTrapTangensAdditiveFactor, setExteriorOrbitTrapTangensMultiplicativeFactor, setExteriorStripingDensity, setFractalType, setInteriorGaussianIntegersTrapFactor, setInteriorOrbitTrapCrossStalksCentre, setInteriorOrbitTrapDiskCentre, setInteriorOrbitTrapDiskRadius, setInteriorOrbitTrapSineAdditiveFactor, setInteriorOrbitTrapSineMultiplicativeFactor, setInteriorOrbitTrapTangensAdditiveFactor, setInteriorOrbitTrapTangensMultiplicativeFactor, setInteriorStripingDensity, setInvertYAxis, setMainFractalOrbitStartingPoint, setMaxNrOfIterations, setNrOfBifurcationPointsPerOrbit, setNrOfBifurcationPointsToDiscard, setScreenBounds, setScreenBounds, setUseFixedNrOfIterations, streamLoadParameters, streamSaveParameters
public MarkusLyapunovFractalIterator()
MarkusLyapunovFractalIterator
object and initialises it with the default 'AB' sequence.protected final org.sm.smtools.math.complex.ComplexNumber evaluateFractalFunction(org.sm.smtools.math.complex.ComplexNumber z, org.sm.smtools.math.complex.ComplexNumber c)
evaluateFractalFunction
in class AFractalIterator
z
- -c
- -null
public java.lang.String getCustomFilenamePart()
getCustomFilenamePart
in class AFractalIterator
public final org.sm.smtools.math.complex.ComplexNumber getDefaultDualParameter()
getDefaultDualParameter
in class AFractalIterator
public final double getDefaultEscapeRadius()
getDefaultEscapeRadius
in class AFractalIterator
public org.sm.smtools.math.complex.ComplexNumber getDefaultP1()
getDefaultP1
in class AFractalIterator
public org.sm.smtools.math.complex.ComplexNumber getDefaultP2()
getDefaultP2
in class AFractalIterator
public java.lang.String getFamilyName()
getFamilyName
in class AFractalIterator
public final java.lang.String getRootSequence()
protected final IterationResult iterate(org.sm.smtools.math.complex.ComplexNumber z, org.sm.smtools.math.complex.ComplexNumber c, boolean saveOrbit)
iterate
in class AFractalIterator
z
- the complex variable zc
- the complex parameter csaveOrbit
- a boolean
indicating whether or not the orbit should be savedprotected void plainTextLoadCustomParameters(org.sm.smtools.util.TextFileParser tfp) throws org.sm.smtools.exceptions.FileParseException
plainTextLoadCustomParameters
in class AFractalIterator
tfp
- a reference to the file parserorg.sm.smtools.exceptions.FileParseException
- in case a read error occursprotected void plainTextSaveCustomParameters(org.sm.smtools.util.TextFileWriter tfw) throws org.sm.smtools.exceptions.FileWriteException
plainTextSaveCustomParameters
in class AFractalIterator
tfw
- a reference to the file writerorg.sm.smtools.exceptions.FileWriteException
- in case a write error occurspublic final void setRootSequence(java.lang.String rootSequence)
String
of A's and B's.rootSequence
- the root sequence to be usedprotected void streamLoadCustomParameters(java.io.DataInputStream dataInputStream) throws java.io.IOException
streamLoadCustomParameters
in class AFractalIterator
dataInputStream
- a data inputstreamjava.io.IOException
- in case a parse error occursprotected void streamSaveCustomParameters(java.io.DataOutputStream dataOutputStream) throws java.io.IOException
streamSaveCustomParameters
in class AFractalIterator
dataOutputStream
- a data outputstreamjava.io.IOException
- in case a write error occurs