Function to reduce a matrix or array with a given clustering vector
Usage
reduc(x, clu, labels = NULL)
Arguments
x
a matrix or a three-dimensional array to be reduced
clu
a vector with the class membership
labels
(optional) the labels to be used in the reduction
Value
The reduced matrix or a three-dimensional array.
Details
Given a partition, this function serves to reduce either a matrix representing e.g. a partial order structure. However the reduction is also generalized a three-dimensional arrays representing multiple relations.