complete_random_shuffling function

Reshuffle sample indices completely randomly

Reshuffle sample indices completely randomly

This function was just added to test early on the functionality of optimize_design() to accept a permutation vector rather than a list with src and dst indices.

complete_random_shuffling(batch_container, ...)

Arguments

  • batch_container: The batch-container.
  • ...: Other params that are passed to a generic shuffling function (like the iteration number).

Returns

A random permutation of the sample assignment in the container.

Examples

data("invivo_study_samples") bc <- BatchContainer$new( dimensions = c("plate" = 2, "column" = 5, "row" = 6) ) scoring_f <- osat_score_generator("plate", "Sex") bc <- optimize_design( bc, scoring = scoring_f, invivo_study_samples, max_iter = 100, shuffle_proposal_func = complete_random_shuffling )