Enum SameConfidenceRanking
java.lang.Object
java.lang.Enum<SameConfidenceRanking>
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.metric.ranking.SameConfidenceRanking
- All Implemented Interfaces:
Serializable
,Comparable<SameConfidenceRanking>
,java.lang.constant.Constable
Enum for different sorting options in case correspondences have same confidence.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSorts correspondences with same confidence in alphabetical order of source and targetSorts true positive correspondences at the bottom of each confidence class.Sorts correspondences with same confidence randomly.Sorts correspondences with same confidence randomly but a seed is set and thus multiple runs, returns same results.Sorts true positive correspondences at the top of each confidence class. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setSeed
(long seed) Sets the seed value for the RANDOM_WITH_SEED enum.sortAlignment
(Alignment systemAlignment, Alignment referenceAlignment) Sorts the system alignment and returns a list of correspondences.sortAlignment
(Iterable<Correspondence> systemAlignment) Sorts the system alignment and returns a list of correspondences.sortAlignment
(Iterable<Correspondence> systemAlignment, Collection<Correspondence> referenceAlignment) Sorts the system alignment and returns a list of correspondences.static SameConfidenceRanking
Returns the enum constant of this type with the specified name.static SameConfidenceRanking[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALPHABETICALLY
Sorts correspondences with same confidence in alphabetical order of source and target -
RANDOM
Sorts correspondences with same confidence randomly. -
RANDOM_WITH_SEED
Sorts correspondences with same confidence randomly but a seed is set and thus multiple runs, returns same results. -
TOP
Sorts true positive correspondences at the top of each confidence class. -
BOTTOM
Sorts true positive correspondences at the bottom of each confidence class.
-
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
RND
-
-
Constructor Details
-
SameConfidenceRanking
private SameConfidenceRanking()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
sortAlignment
public List<Correspondence> sortAlignment(Iterable<Correspondence> systemAlignment, Collection<Correspondence> referenceAlignment) Sorts the system alignment and returns a list of correspondences. The important part is when multiple correspondences have the same confidence. In this situation the ranking is determined by the SameConfidenceRanking. The reference alignment (second parameter) can be null, in case TOP and BOTTOM is not used.- Parameters:
systemAlignment
- the alignment to be sorted.referenceAlignment
- the reference alignment which is only used for TOP and BOTTOM.- Returns:
- a sorted alignment
-
sortAlignment
Sorts the system alignment and returns a list of correspondences. The important part is when multiple correspondences have the same confidence. In this situation the ranking is determined by the SameConfidenceRanking. Due to the fact that reference alignment is not given, TOP and BOTTOM should be not used.- Parameters:
systemAlignment
- the alignment to be sorted.- Returns:
- a sorted alignment
-
sortAlignment
Sorts the system alignment and returns a list of correspondences. The important part is when multiple correspondences have the same confidence. In this situation the ranking is determined by the SameConfidenceRanking. The reference alignment (second parameter) can be null, in case TOP and BOTTOM is not used.- Parameters:
systemAlignment
- the alignment to be sorted.referenceAlignment
- the reference alignment which is only used for TOP and BOTTOM.- Returns:
- a sorted alignment
-
setSeed
public static void setSeed(long seed) Sets the seed value for the RANDOM_WITH_SEED enum.- Parameters:
seed
- the seed value to use for generating the randomness.
-