Class RankingSemanticsExample
- java.lang.Object
-
- net.sf.tweety.arg.rankings.examples.RankingSemanticsExample
-
public class RankingSemanticsExample extends java.lang.Object
Example code for ranking semantics.- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description RankingSemanticsExample()
-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] args)
private static double
round(double value, int n)
Rounds a double value to n decimals.private static ArgumentRanking
roundRanking(NumericalArgumentRanking ranking, int n)
Rounds values in the given numerical argument ranking to n decimals.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
round
private static double round(double value, int n)
Rounds a double value to n decimals.- Parameters:
value
- a double valuen
- number of decimals- Returns:
- value rounded to n decimals
-
roundRanking
private static ArgumentRanking roundRanking(NumericalArgumentRanking ranking, int n)
Rounds values in the given numerical argument ranking to n decimals.- Parameters:
ranking
- a NumericalArgumentRankingn
- decimals- Returns:
- rounded NumericalArgumentRanking
-
-