?? d_tdeb.m
字號:
%D_TDEB HOSA Demo: Time-delay estimation using cross-bispectrum (tdeb)
%
echo off
% A. Swami Oct 18, 1997.
% Copyright (c) 1991-2001 by United Signals & Systems, Inc.
% $Revision: 1.7 $
% RESTRICTED RIGHTS LEGEND
% Use, duplication, or disclosure by the Government is subject to
% restrictions as set forth in subparagraph (c) (1) (ii) of the
% Rights in Technical Data and Computer Software clause of DFARS
% 252.227-7013.
% Manufacturer: United Signals & Systems, Inc., P.O. Box 2374,
% Culver City, California 90231.
%
% This material may be reproduced by or for the U.S. Government pursuant
% to the copyright license under the clause at DFARS 252.227-7013.
clear, clc,
echo on
% Time-delay estimation using cross-bispectrum
%
% TDEB uses auto and cross-bispectra to compute a 1-D `hologram' which should
% peak at the correct delay.
% We will test TDEB on some data generated by TDEGEN:
% The data consist of two signals, y1 = s1 + g1, and y2 = s2 + g2.
% s1 is an i.i.d. sequence with the single-sided exponential distribution
% (mean=0, variance=1, skewness=2).
% s2 is a delayed version of s1 (delay of 16 samples).
% g1 is a white Gaussian noise sequence with unity variance.
% g2 is obtained by passing g1 through the MA filter,
% [1 2 3 4 5 6 6 4 3 2 1].
% The two noise signals, g1 and g2, have a strong cross-correlation at a delay
% of 5 samples.
% Hit any key to continue
pause
load tde1
m = length(r21);
m = (m-1)/2;
clf
subplot(211)
plot(-m:m, r21),title('The cross-correlation between the two signals')
grid on
set (gcf, 'Name','HOSA TDEB ')
%
% The cross-correlation displays two peaks:
% a broad peak at n=5 corresponding to the noise
% a sharp peak at n=16 corresponding to the signal delay
% The cross-correlation by itself cannot be used to distinguish between
% these two peaks.
subplot(212)
d2 = tdeb (s1, s2, 30);
a = axis;
axis([-m,m,a(3),a(4)])
set (gcf, 'Name','HOSA TDEB')
% Note that the TDEB estimate is blind to the spatially correlated noise
% and shows a single sharp peak at the true delay of 16 samples.
% Hit any key to continue
pause
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -