Package org.hipparchus.samples.complex
Class SawToothPhaseModuleValue
- java.lang.Object
-
- org.hipparchus.samples.complex.DomainColoring
-
- org.hipparchus.samples.complex.SawToothPhaseModuleValue
-
public class SawToothPhaseModuleValue extends DomainColoring
Domain coloring enhancing both phase and module changes.Value encodes both phase and module using two sawtooth functions.
The sawtooth functions are computed from a natural logarithm and fractional parts. They enhance both phase and modules changes with discontinuities and dark cells.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSawToothPhaseModuleValue(double saturation, double minBrightness, double maxBrightness, int nbLines)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublevalue(Complex z)Get value for a complex value.-
Methods inherited from class org.hipparchus.samples.complex.DomainColoring
hue, saturation
-
-
-
-
Constructor Detail
-
SawToothPhaseModuleValue
protected SawToothPhaseModuleValue(double saturation, double minBrightness, double maxBrightness, int nbLines)Simple constructor.- Parameters:
saturation- constant saturationminBrightness- minimum brightnessmaxBrightness- maximum brightnessnbLines- number of lines per cycle
-
-
Method Detail
-
value
public double value(Complex z)
Get value for a complex value.- Specified by:
valuein classDomainColoring- Parameters:
z- complex value- Returns:
- value
-
-