Skip to contents

Randomize a matrix using the curve ball algorithm. This keeps the sum of rows and columns constant.

Usage

randomize_matrix_cb(matrix)

Arguments

matrix

matrix to be randomized.

Value

A randomized matrix.

Details

The curve ball algorithm was described by Strona et al. (2014) doi:10.1038/ncomms5114.