Triangle inequality for Gausisian Random Variable
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmad Khalifi
am 27 Sep. 2022
Beantwortet: William Rose
am 27 Sep. 2022
Triangle inequality must hold for complex-valued Gaussian rando variable! The simulation on matlab shows conflect results (few negatives). kindly see the matlab code below.
clc; clear; clf;
N=10;
R=zeros(N,1); %to record the results
for T=1:N
h=randn(1,2)+1i*randn(1,2); %this is 1x2 vector [v w]
h1=sum(h); %this is a complex number: v+w
R(T,1)= h*h'- h1*h1'; % must be postive based on the triangle inequality
end
plot(R)
0 Kommentare
Akzeptierte Antwort
William Rose
am 27 Sep. 2022
N=10;
R1=zeros(N,1); %to record the results
R2=zeros(N,1);
for T=1:N
h=randn(1,2)+1i*randn(1,2); %this is 1x2 vector [v w]
hs=sum(h); %this is a complex number: v+w
R1(T,1)= h*h'- hs*hs'; % must be postive based on the triangle inequality
R2(T,1)=abs(h(1))+abs(h(2))-abs(hs);
end
plot(R1,'-r.'); hold on; plot(R2,'-bx'); legend('R1','R2'); grid on
The thing you are computing, which I have renamed R1, is not the triangle inequality for complex numbers. The quantity R2 is the triangle inequality and it is always positive, as expected.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!