pairwise_swapping: Proposes pairwise swap of samples on each call.

View source: R/shuffle_samples.R

pairwise_swappingR 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


designit documentation built on May 29, 2024, 12:04 p.m.