Internal soundgen function.
selfsim(m, norm = FALSE, simil = c("cosine", "cor")[1], win = 1)
input matrix such as a spectrogram
if TRUE, the spectrum of each STFT frame is normalized
method for comparing frames: "cosine" = cosine similarity, "cor" = Pearson's correlation
the length of window for averaging self-similarity, frames
Returns a square self-similarity matrix.
Called by ssm
.