Package org.hipparchus.samples.complex
Class DomainColoring
java.lang.Object
org.hipparchus.samples.complex.DomainColoring
- Direct Known Subclasses:
ContinuousModuleValue
,SawToothModuleValue
,SawToothPhaseModuleValue
Base class for domain coloring.
All methods have the following features:
- hue represents phase (red for 0, then orange, yellow, green, blue at π, indigo, violet and back to red)
- saturation is constant
Their differences lie on what value represents.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DomainColoring
protected DomainColoring(double saturation) Simple constructor.- Parameters:
saturation
- constant saturation
-
-
Method Details
-
hue
Continuous hue.- Parameters:
z
- complex value- Returns:
- continuous hue
-
saturation
Get saturation for a complex value.- Parameters:
z
- complex value- Returns:
- saturation
-
value
Get value for a complex value.- Parameters:
z
- complex value- Returns:
- value
-