Generates a block permutation distribution of \(V\) statistic. Precomputes distances and some indexing arrays to quickly generate samples from the block permutation distribution of the \(V\) statistic of \(\mathbf{X}\).
cacheBlockPermute1(X, block_labels, nruns, p)A vector of resampled values of the \(V\) statistic
The binary or real matrix on which to perform permutation resampling
Length \(P\) vector recording the block label of each feature
The resampling number (use at least 1000)
The power \(p\) of \(l_p^p\), i.e., \(||x||_p^p = (x_1^p+...x_n^p)\)
This version is with block labels specified.
Dependencies: buildForward, buildReverse, cachePermute, getHammingDistance, getLpDistance