Package org.moeaframework.analysis.io
Enum Class MetricFileWriter.Metric
- All Implemented Interfaces:
Serializable
,Comparable<MetricFileWriter.Metric>
,Constable
- Enclosing class:
- MetricFileWriter
Enumeration of metrics that are written to the metric file. This also specifies the order of the columns.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAdditive epsilon-indicator (AEI).Generational distance (GD).Hypervolume.Inverted generational distance (IGD).Maximum Pareto front error.Spacing. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricFileWriter.Metric
fromString
(String value) Determine the metric from its string representation using case-insensitive matching.static int
Returns the number of metrics written to the metric file.static MetricFileWriter.Metric
Returns the enum constant of this class with the specified name.static MetricFileWriter.Metric[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Hypervolume
Hypervolume. -
GenerationalDistance
Generational distance (GD). -
InvertedGenerationalDistance
Inverted generational distance (IGD). -
Spacing
Spacing. -
EpsilonIndicator
Additive epsilon-indicator (AEI). -
MaximumParetoFrontError
Maximum Pareto front error.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumberOfMetrics
public static int getNumberOfMetrics()Returns the number of metrics written to the metric file.- Returns:
- the number of metrics
-
fromString
Determine the metric from its string representation using case-insensitive matching.- Parameters:
value
- the string representation of the metric- Returns:
- the metric
- Throws:
IllegalArgumentException
- if the metric is not supported
-