我对其进行了分析,但做出来的结果好像不太合适!具体代码如下:
- % Marginal hilbert spectrum
- tl = length(im)*Ts;
- for k = 1:size(im,1)
- mhs(k) = sum(im(k,:))*Ts; % marginal hilbert spectrum
- mmhs(k) = sum(im(k,:))*Ts*1/tl; % Mean marginal hilbert spectrum
- %mhset(k) = sum(im(k,:).^2)*1/Ts*1/tl; % Energy
- mhset(k) = sum(im(k,:).^2*Ts); % Accumulate Energy
- mhsef(k) = sum(im(k,:).^2*fs/NN/2); % Instantaneous Energy
-
- Ds(k)=sum((1-(im(k,:)/mmhs(k))).^2)/tl; %Degrade of stationarity
-
- end
复制代码 |