필터 지우기
필터 지우기

correlation in TDOA LOCALIZATION

조회 수: 1 (최근 30일)
ali hassan
ali hassan 2020년 9월 21일
function [ reliability ] = corr_reliability( correlation )
%corr_reliability calculates reliability 0..1 of the correlation result
% Looks for 2nd highest outstanding PEAK (not sample!) and returns "1 - amplitude percentage in comparison to main peak"
% e.g. main peak 10, 2nd peak 3 -> output: 0.7
[corr_max, idx] = max(correlation);
correlation_temp = correlation;
correlation_temp(idx) = 0;
bin_right_old = corr_max;
for ii=idx+1:1:length(correlation) % delete all decreasing values on right side
if (correlation_temp(ii) < bin_right_old)
bin_right_old = correlation_temp(ii);
correlation_temp(ii) = 0;
else
break;
end
end
bin_left_old = corr_max;
for ii=idx-1:-1:1 % delete all decreasing values on left side
if (correlation_temp(ii) < bin_left_old)
bin_left_old = correlation_temp(ii);
correlation_temp(ii) = 0;
else
break;
end
end
peak2 = max(correlation_temp); % look for 2nd (real) peak
reliability = 1-(peak2 / corr_max);
end
this is a function.i want to know what this function is actually doing.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by