Package org.hipparchus.samples.complex
Class DomainColoring
- java.lang.Object
-
- org.hipparchus.samples.complex.DomainColoring
-
- Direct Known Subclasses:
ContinuousModuleValue
,SawToothModuleValue
,SawToothPhaseModuleValue
public abstract class DomainColoring extends Object
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
Constructors Modifier Constructor Description protected
DomainColoring(double saturation)
Simple constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
hue(Complex z)
Continuous hue.double
saturation(Complex z)
Get saturation for a complex value.protected abstract double
value(Complex z)
Get value for a complex value.
-
-
-
Method Detail
-
hue
public double hue(Complex z)
Continuous hue.- Parameters:
z
- complex value- Returns:
- continuous hue
-
saturation
public double saturation(Complex z)
Get saturation for a complex value.- Parameters:
z
- complex value- Returns:
- saturation
-
value
protected abstract double value(Complex z)
Get value for a complex value.- Parameters:
z
- complex value- Returns:
- value
-
-