View source: R/Randomization_functions.R
randomize_asymmetric | R Documentation |
During this randomisation procedure, all interaction strengths are reordered to make the 2-link loops in the randomised system as asymmetric as possible. Diagonal values and network topology are preserved.
randomize_asymmetric(it, ij_col, ji_col)
it |
interaction table (created by interaction_strengths()) |
ij_col |
column of a_ij values to randomise (choose scaled or unscaled) |
ji_col |
column of a_ji values to randomise (scaled or unscaled) |
To do this, all links are ordered by size. Then, the very strongest link is paired with the weakest one, the second strongest with the second weakest etc. The location of pairwise interactions in the network is chosen randomly. Also, links are randomised between the ij and ji column, so that the strong links can appear both above and below the diagonal.
The function returns a new interaction table that contains two new columns $a_ij_asym and $a_ji_asym that contains the same values as the original columns but in a different order.
To get a Jacobian matrix with maximised pairwise asymmetry, use assemble_jacobian() and specify the new columns.
Interaction table with two additional columns $a_ij_asym and $a_ji_asym, containing randomised interaction strengths
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.