powered by
Computes \(V\) statistic for a binary matrix \(\mathbf{X}\), as defined in Aw, Spence and Song (2023).
getBinVStat(X)
\(V(\mathbf{X})\), the variance of the pairwise Hamming distance between samples
The \(N \times P\) binary matrix
Dependencies: getHammingDistance
X <- matrix(nrow = 5, ncol = 10, rbinom(50, 1, 0.5)) getBinVStat(X)
Run the code above in your browser using DataLab