Main Content

hit

Update track logic with subsequent hit

Description

example

hit(historyLogic) updates the track history with a hit.

hit(scoreLogic,volume,likelihood) updates the track score in a case of a hit, given the likelihood of a detection being assigned to the track.

example

hit(scoreLogic,volume,likelihood,pd,pfa) updates the track score in a case of a hit, specifying the probability of detection pd and probability of false alarm pfa.

Examples

collapse all

Create a history-based logic with the default confirmation and deletion thresholds.

historyLogic = trackHistoryLogic;

Initialize the logic, which records a hit as the first update to the logic. The first element of the 'History' property, which indicates the most recent update, is 1.

init(historyLogic)
history = historyLogic.History;
disp(['History: [',num2str(history),'].']);
History: [1  0  0  0  0  0].

Update the logic with a hit. The first two elements of the 'History' property are 1.

hit(historyLogic)
history = historyLogic.History;
disp(['History: [',num2str(history),'].']);
History: [1  1  0  0  0  0].

Create a score-based logic with default confirmation and deletion thresholds.

scoreLogic = trackScoreLogic;

Specify the probability of detection (pd), the probability of false alarm (pfa), the volume of a sensor detection bin (volume), and the new target rate in a unit volume (beta).

pd = 0.9;
pfa = 1e-6;
volume = 1.3;
beta = 0.1;

Initialize the logic using these parameters. The first update to the logic is a hit.

init(scoreLogic,volume,beta,pd,pfa);
disp(['Score and MaxScore: ', num2str(output(scoreLogic))]);
Score and MaxScore: 11.6699      11.6699

Specify the likelihood that the detection is assigned to the track.

likelihood = 0.05 + 0.05*rand(1);

Update the logic with a hit. The current score and maximum score increase.

hit(scoreLogic,volume,likelihood)
disp(['Score and MaxScore: ', num2str(output(scoreLogic))])
Score and MaxScore: 23.2426      23.2426

Input Arguments

collapse all

Track history logic, specified as a trackHistoryLogic object.

Track score logic, specified as a trackScoreLogic object.

Volume of sensor detection bin, specified as a nonnegative scalar. For example, a 2-D radar will have a sensor bin volume of (azimuth resolution in radians) * (range) * (range resolution).

Data Types: single | double

Likelihood of a detection being assigned to the track, specified as a numeric vector of length m.

Data Types: single | double

Probability of detection, specified as a nonnegative scalar.

Data Types: single | double

Probability of false alarm, specified as a nonnegative scalar.

Data Types: single | double

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2018b