Adjusts and reorders a pattern ordering matrix.
adjust_pattern(pattern_matrix, adjustment)
A numeric matrix that specifies the pattern to be transformed into the position vector. ATTENTION: Pattern should be in the ranks permutation notation, otherwise does not really make sense.
A character vector, either adjustment = "jumps" or adjustment = "bitflips" that denotes the sorting type
A numeric matrix that contains the permutation matrix.
This function reorders permutations based on "jumps" or based on "bitflips".
Sebastian Sippel, 2014. Master Thesis. University of Bayreuth.