Package org.hipparchus.samples.complex
Class SawToothPhaseModuleValue
java.lang.Object
org.hipparchus.samples.complex.DomainColoring
org.hipparchus.samples.complex.SawToothPhaseModuleValue
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
ConstructorsModifierConstructorDescriptionprotectedSawToothPhaseModuleValue(double saturation, double minBrightness, double maxBrightness, int nbLines) Simple constructor. -
Method Summary
Methods inherited from class org.hipparchus.samples.complex.DomainColoring
hue, saturation
-
Constructor Details
-
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 Details
-
value
Get value for a complex value.- Specified by:
valuein classDomainColoring- Parameters:
z- complex value- Returns:
- value
-