buildForward {flintyR}R Documentation

Map from Indices to Label Pairs

Description

Builds a map from indexes to pairs of labels. This is for caching distances, to avoid recomputing Hamming distances especially when dealing with high-dimensional (large P) matrices.

Usage

buildForward(N)

Arguments

N

Sample size, i.e., nrow(\mathbf{X})

Details

Dependencies: None

Value

N \times N matrix whose entries record the index corresponding to the pair of labels (indexed by the matrix dims)


[Package flintyR version 0.1.0 Index]