(self, matrix)
Set the dissimilarity (distance) matrix.

        Parameters
        ----------
        matrix : Optional[Orange.misc.DistMatrix]
Set the dissimilarity (distance) matrix.
Set the dissimilarity ( distance ) matrix .
def set_disimilarity(self, matrix):
        """Set the dissimilarity (distance) matrix.

        Parameters
        ----------
        matrix : Optional[Orange.misc.DistMatrix]
        """

        if matrix is not None and len(matrix) < 2:
            self.Error.matrix_too_small()
            matrix = None
        else:
            self.Error.matrix_too_small.clear()

        self.matrix = matrix
        self.matrix_data = matrix.row_items if matrix is not None else None
def set_disimilarity ( self , matrix ) : if matrix is not None and len ( matrix ) < 2 : self . Error . matrix_too_small ( ) matrix = None else : self . Error . matrix_too_small . clear ( ) self . matrix = matrix self . matrix_data = matrix . row_items if matrix is not None else None