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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateRankCorrelation(double[] x, double[] y)protected doubleintcompare(KendallsTau.ValuePair pair1, KendallsTau.ValuePair pair2)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
KendallsTau
public KendallsTau()
-
-
Method Details
-
calculateRankCorrelation
public double calculateRankCorrelation(double[] x, double[] y)- Specified by:
calculateRankCorrelationin interfaceRankCorrelationCalculator
-
calculateRankCorrelation
-
compare
- Specified by:
comparein interfaceComparator<KendallsTau.ValuePair>
-