sync
Synchronize scores of trackScoreLogic
objects
Description
sync(
sets the values of scoreLogic1
,scoreLogic2
)'Score'
and 'MaxScore'
of scoreLogic1
to the values of
scoreLogic2
.
Examples
Create a score logic using the default confirmation and deletion thresholds.
scoreLogic1 = trackScoreLogic
scoreLogic1 = trackScoreLogic with properties: ConfirmationThreshold: 20 DeletionThreshold: -5 Score: 0 MaxScore: 0
Create a second score logic, specifying the confirmation threshold as 30 and the deletion threshold as -10.
scoreLogic2 = trackScoreLogic('ConfirmationThreshold',30,'DeletionThreshold',-10)
scoreLogic2 = trackScoreLogic with properties: ConfirmationThreshold: 30 DeletionThreshold: -10 Score: 0 MaxScore: 0
Initialize the two score logics using different target rates in a unit volume.
volume = 1.3; % Volume of a sensor detection bin beta1 = 0.1; % New target rate in a unit volume init(scoreLogic1,volume,beta1); disp(['Score and MaxScore of ScoreLogic1: ', num2str(output(scoreLogic1))])
Score and MaxScore of ScoreLogic1: 11.6699 11.6699
beta2 = 0.3; % New target rate in a unit volume init(scoreLogic2,volume,beta2); disp(['Score and MaxScore of ScoreLogic2: ', num2str(output(scoreLogic2))])
Score and MaxScore of ScoreLogic2: 12.7685 12.7685
Specify the likelihood that a detection is assigned to the track. Then, update the second score logic with a hit.
likelihood = 0.05 + 0.05*rand(1);
hit(scoreLogic2,volume,likelihood)
disp(['Score and MaxScore of ScoreLogic2: ', num2str(output(scoreLogic2))])
Score and MaxScore of ScoreLogic2: 24.3413 24.3413
Synchronize scoreLogic1
to have the same 'Score' and 'MaxScore' as scoreLogic2
. The sync
function does not modify the confirmation or deletion thresholds. To verify this, display the properties of both score logic objects.
sync(scoreLogic1,scoreLogic2) scoreLogic1
scoreLogic1 = trackScoreLogic with properties: ConfirmationThreshold: 20 DeletionThreshold: -5 Score: 24.3413 MaxScore: 24.3413
scoreLogic2
scoreLogic2 = trackScoreLogic with properties: ConfirmationThreshold: 30 DeletionThreshold: -10 Score: 24.3413 MaxScore: 24.3413
Input Arguments
Track score logic to synchronize, specified as a trackScoreLogic
object.
Reference track score logic, specified as a trackScoreLogic
object.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2018b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)