pairwise_swapping {designit}R Documentation

Proposes pairwise swap of samples on each call.

Description

This function will ensure that one of the locations is always non-empty. It should not return trivial permutations (e.g., src=c(1,2) and dst=c(1,2)).

Usage

pairwise_swapping(batch_container, iteration)

Arguments

batch_container

The batch-container.

iteration

The current iteration number.

Value

Function accepting batch container & iteration number. It returns a list with length 1 vectors 'src' and 'dst', denoting source and destination index for the swap operation


[Package designit version 0.5.0 Index]