R/permutations.R
permutate_binary_matrix.Rd
Rearranges columns within a matrix until the closest permutation to the target is found.
permutate_binary_matrix(current, target)
current | Present |
---|---|
target | Desired |
A permutated_matrix
object that contains:
permutate_matrix
:
The current
matrix permutated to match the target
permutate_order
:
The permutation order applied to the columns of current
.
permutate_mean
:
The mean difference between the permutation current and target.
Bound between 0 and 1 with a mean value close to 1 indicating an
exact permutation between current
and target
is possible.
permutate_target
:
Reference object used for permutation.