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