check_similarity()
is used to validate similarity matrices.
check_similarity(partition, similarity)
two-dimensinal matrix
of mode numeric
with
rows as types, columns as subcommunities, and elements containing relative
abundances of types in subcommunities. In the case of phylogenetic
metacommunities, these are the relative abundances of terminal taxa.
two-dimensinal matrix
of mode numeric
;
contains pair-wise similarity between types.
Returns a two-dimensions matrix
of mode numeric
. If
the similarity matrix was valid, this should be identical to that which was
input as an argument.