msaf/algorithms/foote/segmenter.py
def compute_ssm(X, metric="seuclidean"):
    """Computes the self-similarity matrix of X."""
    D = distance.pdist(X, metric=metric)
    D = distance.squareform(D)
    D /= D.max()
    return 1 - D
def compute_ssm(X, metric="seuclidean"):
    D = distance.pdist(X, metric=metric)
    D = distance.squareform(D)
    D /= D.max()
    return 1 - D
def compute_ssm ( X , metric = "seuclidean" ) : D = distance . pdist ( X , metric = metric ) D = distance . squareform ( D ) D /= D . max ( ) return 1 - D
Computes the self-similarity matrix of X.
Computes the self - similarity matrix of X .