W'*X*X'*W or W'*(X*X')*W, which one is more precision

조회 수: 13 (최근 30일)
zhang
zhang 2013년 8월 9일
Hi everyone.
When I wrote something like W'*X*X'*W, matlab gives me hint that parenthese X. I did a lot of experiment, when W is a big size matrix and the value of the element in W is small, these two equations give me different results. I'm wondering which one is more precision?
THanks
  댓글 수: 2
Pourya Alinezhad
Pourya Alinezhad 2013년 8월 9일
편집: Pourya Alinezhad 2013년 8월 9일
i think this is the output power of an adaptive array or a tapped delay line filter or something like that... so you need to calculate p=y*y' so write :
p=(W*X')*(W*X')'
or
k=W*X';
p=k*k';
Jan
Jan 2013년 8월 10일
@zhang: To be exact, both have the same precision, namely double precision. You mean accuracy. The difference is essential.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2013년 8월 10일
The gained accuracy depends on the data also. You can check this applying small variations to the input and measure the changes in the output. This determines the sensitivity of the implementation.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by