%% Initialize Score-Based Logic
% 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);

% Display the current and maximum score of the logic. Since the logic has been updated once, the current score is equal to the maximum score.

currentScore = scoreLogic.Score
maximumScore = scoreLogic.MaxScore

% Copyright 2018 The MathWorks, Inc.