powered by
Function to permutate a given array of relation.
perm(x, clu, rev, lbs, sort)
A permuted matrix or array
a matrix or an array to be permuted
the cluster for the permutation
(optional and logical) whether the order in clu sholud be reverted.
clu
(optional) the labels after the permutation
(optional and logical) sort array according to labels?
Antonio Rivero Ostoic
This function serves to permutate an array representing relations according to a vector for the clustering membership.
cph, partial.order
cph
partial.order
# scan the multiplication table data s <- matrix(data=c(1, 1, 1, 3, 3, 3, 3, 3, 3), nrow=3, ncol=3, byrow=TRUE) # the permutation as an endomorphism perm(s, clu = c(1,2,3))
Run the code above in your browser using DataLab