plot(false_positives_3, true_positives_3,'LineWidth',2);
title('The 3 Securities at Airport '),legend('Alert Alarmed','Big
Brother','Captive'),xlabel('False positive rate'),ylabel('True positive
rate');
%% Outside the terminal
[false_positives_1, true_positives_1, threshold_1] =
perfcurve(AlertAlarmed.GroundTruth, AlertAlarmed.Likelihood, 0);
[false_positives_2, true_positives_2, threshold_2] =
perfcurve(BigBrother.GroundTruth, BigBrother.Likelihood, 0);
[false_positives_3, true_positives_3, threshold_3] =
perfcurve(Captive.GroundTruth, Captive.Likelihood, 0);
%using perfcurve function to calculate ROC false_positive_cost=5;
[x1, y1, cost1, idx1] = perfcurve(false_positives_1, true_positives_1,1);
[x2, y2, cost2, idx2] = perfcurve(false_positives_2, true_positives_2,1);
[x3, y3, cost3, idx3] = perfcurve(false_positives_3, true_positives_3,1);
%%figure,clf
plot(false_positives_1, true_positives_1,'LineWidth',2); hold on
plot(false_positives_2, true_positives_2,'LineWidth',2); hold on
plot(false_positives_3, true_positives_3,'LineWidth',2);
plot(x1, y1,'gx','MarkerSize',15,'LineWidth',2);hold on
plot(x2, y2,'bx','MarkerSize',15,'LineWidth',2); hold on
plot(x3, y3,'rx','MarkerSize',15,'LineWidth',2);
title('Location-1: Outside Terminal'),legend('Alert Alarmed','Big
Brother','Captive','Alert Alarmed OOP', 'Big Brother OOP','Captive
OOP'),xlabel('False positive rate'),ylabel('True positive rate');
%% On the Tarmac
[false_positives_1, true_positives_1, threshold_1] =
perfcurve(AlertAlarmed.GroundTruth, AlertAlarmed.Likelihood, 0);
[false_positives_2, true_positives_2, threshold_2] =
perfcurve(BigBrother.GroundTruth, BigBrother.Likelihood, 0);
[false_positives_3, true_positives_3, threshold_3] =
perfcurve(Captive.GroundTruth, Captive.Likelihood, 0);
false_positive_cost=8;
%using perfcurve function to calculate ROC
[x1, y1, cost1, idx1] = perfcurve(false_positives_1, true_positives_1,1);
[x2, y2, cost2, idx2] = perfcurve(false_positives_2, true_positives_2,1);
[x3, y3, cost3, idx3] = perfcurve(false_positives_3, true_positives_3,1);
% ploting on Tarmac figure,clf
plot(false_positives_1, true_positives_1,'LineWidth',2); hold on
plot(false_positives_2, true_positives_2,'LineWidth',2); hold on
plot(false_positives_3, true_positives_3,'LineWidth',2); plot(x1,
y1,'gx','MarkerSize',15,'LineWidth',2);hold on
plot(x2, y2,'bx','MarkerSize',15,'LineWidth',2); hold on
plot(x3, y3,'rx','MarkerSize',15,'LineWidth',2); title('Location-2: Tarmac')
legend('Alert Alarmed','Big Brother','Captive','Alert Alarmed OOP', 'Big
Brother OOP','Captive OOP'),xlabel('False positive rate'),ylabel('True
positive rate');