Package elki.visualization.style
Enum ClusterStylingPolicy.IntensityTransform
- java.lang.Object
-
- java.lang.Enum<ClusterStylingPolicy.IntensityTransform>
-
- elki.visualization.style.ClusterStylingPolicy.IntensityTransform
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClusterStylingPolicy.IntensityTransform>
- Enclosing class:
- ClusterStylingPolicy
public static enum ClusterStylingPolicy.IntensityTransform extends java.lang.Enum<ClusterStylingPolicy.IntensityTransform>
Intensity transformation functions- Author:
- Erich Schubert
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAX2QUOTIENT
MAX2QUOTIENTQUAD
MAX2SUBTRACT
MAXLINEAR
MAXQUADRATIC
SCALEDLINEAR
-
Constructor Summary
Constructors Modifier Constructor Description private
IntensityTransform()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
scale(double v, double min, double max)
Additional scaling with minimum and maximum (default: none).abstract double
transform(double[] probs)
Transform the intensity values.static ClusterStylingPolicy.IntensityTransform
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClusterStylingPolicy.IntensityTransform[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAXLINEAR
public static final ClusterStylingPolicy.IntensityTransform MAXLINEAR
-
SCALEDLINEAR
public static final ClusterStylingPolicy.IntensityTransform SCALEDLINEAR
-
MAXQUADRATIC
public static final ClusterStylingPolicy.IntensityTransform MAXQUADRATIC
-
MAX2QUOTIENT
public static final ClusterStylingPolicy.IntensityTransform MAX2QUOTIENT
-
MAX2QUOTIENTQUAD
public static final ClusterStylingPolicy.IntensityTransform MAX2QUOTIENTQUAD
-
MAX2SUBTRACT
public static final ClusterStylingPolicy.IntensityTransform MAX2SUBTRACT
-
-
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 namejava.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
- Valuemin
- Minimum inputmax
- Maximum input- Returns:
-
-