cacheBlockPermute1 {flintyR}R Documentation

Resampling Many V Statistics (Version 1)

Description

Generates a block permutation distribution of VV statistic. Precomputes distances and some indexing arrays to quickly generate samples from the block permutation distribution of the VV statistic of X\mathbf{X}.

Usage

cacheBlockPermute1(X, block_labels, nruns, p)

Arguments

X

The binary or real matrix on which to perform permutation resampling

block_labels

Length PP vector recording the block label of each feature

nruns

The resampling number (use at least 1000)

p

The power pp of lppl_p^p, i.e., xpp=(x1p+...xnp)||x||_p^p = (x_1^p+...x_n^p)

Details

This version is with block labels specified.

Dependencies: buildForward, buildReverse, cachePermute, getHammingDistance, getLpDistance

Value

A vector of resampled values of the VV statistic


[Package flintyR version 0.1.0 Index]