Module org.scijava.ops.image
Class KendallTauBRank<T extends RealType<T>,U extends RealType<U>>
- java.lang.Object
-
- org.scijava.ops.image.coloc.kendallTau.KendallTauBRank<T,U>
-
- Type Parameters:
T-
- All Implemented Interfaces:
BiFunction<Iterable<T>,Iterable<U>,Double>
public class KendallTauBRank<T extends RealType<T>,U extends RealType<U>> extends Object implements BiFunction<Iterable<T>,Iterable<U>,Double>
This algorithm calculates Kendall's Tau-b rank correlation coefficientAccording to this article, Tau-b (appropriate if multiple pairs share the same first, or second, value), the rank correlation of a set of pairs
(x_1, y_1), ..., (x_n, y_n):Tau_B = (n_c - n_d) / sqrt( (n_0 - n_1) (n_0 - n_2) )
wheren_0 = n (n - 1) / 2 n_1 = sum_i t_i (t_i - 1) / 2 n_2 = sum_j u_j (u_j - 1) / 2 n_c = #{ i, j; i != j && (x_i - x_j) * (y_i - y_j) > 0 }, i.e. the number of pairs of pairs agreeing on the order of x and y, respectively n_d = #{ i, j: i != j && (x_i - x_j) * (y_i - y_j) < 0 }, i.e. the number of pairs of pairs where x and y are ordered opposite of each other t_i = number of tied values in the i-th group of ties for the first quantity u_j = number of tied values in the j-th group of ties for the second quantity- Author:
- Johannes Schindelin, Ellen T Arena
- Implementation Note:
- op names='coloc.kendallTau'
-
-
Constructor Summary
Constructors Constructor Description KendallTauBRank()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleapply(Iterable<T> image1, Iterable<U> image2)TODO-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-