Class KendallsTau
- java.lang.Object
-
- org.aksw.palmetto.evaluate.correlation.KendallsTau
-
- All Implemented Interfaces:
Comparator<KendallsTau.ValuePair>,RankCorrelationCalculator
public class KendallsTau extends Object implements RankCorrelationCalculator, Comparator<KendallsTau.ValuePair>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classKendallsTau.ValuePair
-
Constructor Summary
Constructors Constructor Description KendallsTau()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalculateRankCorrelation(double[] x, double[] y)protected doublecalculateRankCorrelation(KendallsTau.ValuePair[] pairs)intcompare(KendallsTau.ValuePair pair1, KendallsTau.ValuePair pair2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
calculateRankCorrelation
public double calculateRankCorrelation(double[] x, double[] y)- Specified by:
calculateRankCorrelationin interfaceRankCorrelationCalculator
-
calculateRankCorrelation
protected double calculateRankCorrelation(KendallsTau.ValuePair[] pairs)
-
compare
public int compare(KendallsTau.ValuePair pair1, KendallsTau.ValuePair pair2)
- Specified by:
comparein interfaceComparator<KendallsTau.ValuePair>
-
-