dissimilarity
daisy
returns this class of objects.
Also the functions
pam
,
clara
,
fanny
,
agnes
, and
diana
return
a
dissimilarity
object, as one component of their return objects.
The
"dissimilarity"
class has methods for the following generic functions:
print
.
The dissimilarity matrix is symmetric, and hence is represented as a vector to save storage space. For i less than j, the dissimilarity between row i and row j is element nrow(x)*(i-1) - i*(i-1)/2 + j-i of that vector. The length of the vector is nrow(x)*(nrow(x)-1)/2, that is, it is of order nrow(x) squared. The object has the following attributes: