Time frequency distance
distance = Ctfrdist(TFR1, TFR2, dist_name) distance = Ctfrdist(TFR1, TFR2, dist_name, dist_coef)
first TFR
second TFR, the same size as previous one
identifier of the distance to compute
optional parameter necessary for some distance measures
'Lq' | Lq distance, 'dist_coef > 0' is the parameter q |
'Quadratic' | Quadratic distance, no 'dist_coef' required |
'Correlation' | Correlation distance, no 'dist_coef' required |
'Kolmogorov' | Kolmogorov distance, no 'dist_coef' required |
'Kullback' | Kullback distance, no 'dist_coef' required |
'Chernoff' | Chernoff distance, one 'dist_coef in [0;1]' required |
'Matusita' | Matusita distance, one 'dist_coef >= 1' required |
'NLq' | Normalized Lq distance,'dist_coef > 0' is q |
'LSD' | Log Spectral deviation, one 'dist_coef > 0' required |
'Jensen' | Jensen distance, one 'dist_coef > 0' required |
Computes distances between Time Frequency Representations (TFRs)
AF1 = Cambifunb(hilbert(sin(2*%pi*0.25*(1:128))) + 0.5*rand(1,128,'normal'),-63:64,128); AF2 = Cambifunb(hilbert(sin(2*%pi*0.15*(1:128))) + 0.5*rand(1,128,'normal'),-63:64,128); ker = Ctfrker(128,128,'WV'); Wigner_TFR1 = Caf2tfr(AF1,ker); Wigner_TFR2 = Caf2tfr(AF2,ker); dist_kolm = Ctfrdist(Wigner_TFR1, Wigner_TFR2, 'Kolmogorov'); | ![]() | ![]() |