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 Details

    • SawToothPhaseModuleValue

      protected SawToothPhaseModuleValue(double saturation, double minBrightness, double maxBrightness, int nbLines)
      Simple constructor.
      Parameters:
      saturation - constant saturation
      minBrightness - minimum brightness
      maxBrightness - maximum brightness
      nbLines - number of lines per cycle
  • Method Details

    • value

      public double value(Complex z)
      Get value for a complex value.
      Specified by:
      value in class DomainColoring
      Parameters:
      z - complex value
      Returns:
      value