Class RankingTools
java.lang.Object
org.tweetyproject.arg.rankings.util.RankingTools
This class contains common utility methods for ranking reasoners.
- Author:
- Anna Gessler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPathsOfHigherSize
(HashSet<ArrayList<Argument>> oldPaths, DungTheory base) Given a set of argument paths of length i-1, this method returns a set of argument paths of length i for the given DungTheory.static GeneralComparator
<Argument, DungTheory> roundRanking
(NumericalPartialOrder<Argument, DungTheory> ranking, int n) Rounds values in the given numerical argument ranking to n decimals.
-
Constructor Details
-
RankingTools
public RankingTools()Default Constructor
-
-
Method Details
-
getPathsOfHigherSize
public static HashSet<ArrayList<Argument>> getPathsOfHigherSize(HashSet<ArrayList<Argument>> oldPaths, DungTheory base) Given a set of argument paths of length i-1, this method returns a set of argument paths of length i for the given DungTheory.- Parameters:
oldPaths
- set of paths of length i-1base
- the DungTheory- Returns:
- a set of paths of length i
-
roundRanking
public static GeneralComparator<Argument,DungTheory> roundRanking(NumericalPartialOrder<Argument, DungTheory> ranking, int n) Rounds values in the given numerical argument ranking to n decimals.- Parameters:
ranking
- a NumericalArgumentRankingn
- decimals- Returns:
- rounded NumericalArgumentRanking
-