Enum ClusterStylingPolicy.IntensityTransform

    • Constructor Detail

      • IntensityTransform

        private IntensityTransform()
    • Method Detail

      • values

        public static ClusterStylingPolicy.IntensityTransform[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClusterStylingPolicy.IntensityTransform c : ClusterStylingPolicy.IntensityTransform.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClusterStylingPolicy.IntensityTransform valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • transform

        public abstract double transform​(double[] probs)
        Transform the intensity values.
        Parameters:
        probs - Probabilities / weights
        Returns:
        transformed intensity value
      • scale

        public double scale​(double v,
                            double min,
                            double max)
        Additional scaling with minimum and maximum (default: none).
        Parameters:
        v - Value
        min - Minimum input
        max - Maximum input
        Returns: