%% Get Current Score of Score-Based Logic
% Create a score-based logic with default confirmation and deletion thresholds.

scoreLogic = trackScoreLogic;

% Get the current and maximum score of the logic. Both scores are 0 because the logic is not initialized.

s = output(scoreLogic)

% Specify the volume of a sensor detection bin (volume), and the new target rate in a unit volume (beta). Initialize the logic using these parameters and the default probabilities of detection and false alarm. The first update to the logic is a hit.

volume = 1.3;
beta = 0.1;
init(scoreLogic,volume,beta);

% Get the current and maximum score of the logic.

s = output(scoreLogic)

% Update the logic with a miss, then get the updated scores.

miss(scoreLogic)
s = output(scoreLogic)

% Copyright 2018 The MathWorks, Inc.