mergeScores
Description
mergeScores(
updates the score of scoreLogic1
,scoreLogic2
)scoreLogic1
by merging the score with the score of
scoreLogic2
. Score merging increases the score of
scoreLogic1
by log(1+exp(score2-score1))
.
Examples
Merge Score Logics
Create a score logic using the default confirmation and deletion thresholds. Initialize the score logic.
scoreLogic1 = trackScoreLogic; volume = 1.3; % Volume of a sensor detection bin beta1 = 1e-5; % 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: 2.4596 2.4596
Create a copy of the score logic.
scoreLogic2 = clone(scoreLogic1);
Specify the likelihood that the detection is assigned to the track, the probability of detection (pd
) and the probability of false alarm (pfa
). Update the second score logic with a hit.
likelihood = 0.05 + 0.05*rand(1);
pd = 0.8;
pfa = 1e-3;
hit(scoreLogic2,volume,likelihood,pd,pfa)
disp(['Score and MaxScore of ScoreLogic2: ', num2str(output(scoreLogic2))])
Score and MaxScore of ScoreLogic2: 7.0068 7.0068
Merge the score of scoreLogic1
with the score of scoreLogic2
. The score of scoreLogic2
is larger, therefore the merged score of scoreLogic1
increases.
mergeScores(scoreLogic1,scoreLogic2)
disp(['Score and MaxScore of merged ScoreLogic1: ', num2str(output(scoreLogic1))])
Score and MaxScore of merged ScoreLogic1: 7.0173 7.0173
Input Arguments
scoreLogic1
— Track score logic to update
trackScoreLogic
object
Track score logic to update, specified as a trackScoreLogic
object.
scoreLogic2
— Reference track score logic
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
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)