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 Details

    • DomainColoring

      protected DomainColoring(double saturation)
      Simple constructor.
      Parameters:
      saturation - constant saturation
  • Method Details

    • 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