powered by
Internal soundgen function.
selfsim( m, norm = FALSE, simil = c("cosine", "cor")[1], win = 1, sparse = FALSE, kernelSize = NULL )
Returns a square self-similarity matrix.
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
if TRUE, the entire SSM is not calculated, but only the central region needed to extract the novelty contour (speeds up the processing)
Called by ssm.
ssm
m = matrix(rnorm(40), nrow = 5) soundgen:::selfsim(m, sparse = TRUE, kernelSize = 2)
Run the code above in your browser using DataLab