(matrix, linkage=AVERAGE)
return scipy.cluster.hierarchy.linkage(distances, method=linkage)
Return linkage using a precomputed distance matrix.

    :param Orange.misc.DistMatrix matrix:
    :param str linkage:
Return linkage using a precomputed distance matrix.
Return linkage using a precomputed distance matrix .
def dist_matrix_linkage(matrix, linkage=AVERAGE):
    """
    Return linkage using a precomputed distance matrix.

    :param Orange.misc.DistMatrix matrix:
    :param str linkage:
    """
    # Extract compressed upper triangular distance matrix.
    distances = condensedform(matrix)
    return scipy.cluster.hierarchy.linkage(distances, method=linkage)
def dist_matrix_linkage ( matrix , linkage = AVERAGE ) : # Extract compressed upper triangular distance matrix. distances = condensedform ( matrix ) return scipy . cluster . hierarchy . linkage ( distances , method = linkage )