Frequency moments of a time-frequency representation
[TM,D2] = momftfr(TFR) [TM,D2] = momftfr(TFR, TMIN) [TM,D2] = momftfr(TFR, TMIN, TMAX) [TM,D2] = momftfr(TFR, TMIN, TMAX, TIME)
a matrix of size Nrow by Ncol: the time-frequency representation.
an integer in [1 Ncol]: the smallest column element of TFR taken into account (default : 1)
an integer in [TMIN Ncol]: highest column element of TFR taken into account (default : Ncol)
a real vector of size TMAX-TMIN+1: the true time instants (default : 1:Ncol)
a real column vector of size Nrow: the averaged time (first order moment)
a real column vector of size Nrow: the squared time duration (second order moment)
momftfr computes the frequeny moments of a time-frequency representation.
sig = fmlin(128,0.1,0.4); [tfr,t,f] = tfrwv(sig); [tm,D2] = momftfr(tfr); subplot(211); plot(f,tm); subplot(212); plot(f,D2); | ![]() | ![]() |