Assuming r is the result above, the frequency is r.freq and for two input signals x, y, the x-y off-diagonal entry of the CSD matrix is: r.power[1,2,:]
Maybe an extra question. I am testing several ways to compare these signals. I have used the cross-correlation function, the pearson coeficient and now this spectral (if I understand it measures the frequencies where 2 signals are similar). Any other ideas to do this? I have several signals and I want to classify them, if I can group them in families.
I’ve contributed to both DynamicAxisWarping.jl and MatrixProfile.jl, and similar to you, my motivation for this came from measuring distances and similarities between spectra.
I implemented several higher-level features in the package
maybe you could find something that would fit you there. The docs and the associated paper should have quite a few examples
Usually people use template matching to say “well signal 1 4 and 7 look alike and 3, 8 and 14 look allike too, so this is group and and this is group B”. I want something different to do this clasification. I was looking into MatrixProfile. What would you recommend? Maybe an example that leads me in the right direction :). Thanks in advance