-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
215 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/avgTime_bright_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/avgTime_bright_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/avgTime_bright_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/avgTime_bright_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/avgTime_dark_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/avgTime_dark_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/avgTime_dark_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/avgTime_dark_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/verification_bright_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/verification_bright_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/verification_bright_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/verification_bright_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/verification_dark_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/verification_dark_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/verification_dark_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/fracture/verification_dark_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/avgTime_bright_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/avgTime_bright_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/avgTime_bright_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/avgTime_bright_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/avgTime_dark_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/avgTime_dark_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/avgTime_dark_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/avgTime_dark_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/verification_bright_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/verification_bright_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/verification_bright_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/verification_bright_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/verification_dark_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/verification_dark_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/verification_dark_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/nodule/verification_dark_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/avgTime_bright_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/avgTime_bright_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/avgTime_bright_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/avgTime_bright_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/avgTime_dark_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/avgTime_dark_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/avgTime_dark_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/avgTime_dark_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/verification_bright_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/verification_bright_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/verification_bright_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/verification_bright_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/verification_dark_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/verification_dark_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/verification_dark_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/organ/verification_dark_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/avgTime_bright_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/avgTime_bright_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/avgTime_bright_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/avgTime_bright_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/avgTime_dark_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/avgTime_dark_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/avgTime_dark_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/avgTime_dark_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/verification_bright_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/verification_bright_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/verification_bright_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/verification_bright_5.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/verification_dark_10.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/verification_dark_2.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/verification_dark_25.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
code/nnv/examples/Submission/WiP_3d/plots/synapse/verification_dark_5.png
Oops, something went wrong.
Binary file added
BIN
+648 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_adrenal_add_1_100.mat
Binary file not shown.
Binary file added
BIN
+631 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_adrenal_add_1_1000.mat
Binary file not shown.
Binary file added
BIN
+634 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_adrenal_add_1_50.mat
Binary file not shown.
Binary file added
BIN
+631 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_adrenal_add_1_500.mat
Binary file not shown.
Binary file added
BIN
+625 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_adrenal_remove_1_100.mat
Binary file not shown.
Binary file added
BIN
+633 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_adrenal_remove_1_1000.mat
Binary file not shown.
Binary file added
BIN
+623 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_adrenal_remove_1_50.mat
Binary file not shown.
Binary file added
BIN
+632 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_adrenal_remove_1_500.mat
Binary file not shown.
Binary file added
BIN
+621 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_vessel_add_1_100.mat
Binary file not shown.
Binary file added
BIN
+623 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_vessel_add_1_1000.mat
Binary file not shown.
Binary file added
BIN
+620 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_vessel_add_1_50.mat
Binary file not shown.
Binary file added
BIN
+626 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_vessel_add_1_500.mat
Binary file not shown.
Binary file added
BIN
+625 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_vessel_remove_1_100.mat
Binary file not shown.
Binary file added
BIN
+624 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_vessel_remove_1_1000.mat
Binary file not shown.
Binary file added
BIN
+627 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_vessel_remove_1_50.mat
Binary file not shown.
Binary file added
BIN
+624 Bytes
code/nnv/examples/Submission/WiP_3d/results/verification_vessel_remove_1_500.mat
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
196 changes: 196 additions & 0 deletions
196
code/nnv/examples/Submission/WiP_3d/visualize_results_shape.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,196 @@ | ||
%% Get all results, one dataset at a time | ||
|
||
results = dir('results'); | ||
|
||
% Variable in the study | ||
datasets = ["adrenal", "vessel"]; | ||
attackType = ["bright", "dark"]; | ||
maxpixels = ["50", "100", "500", "1000"]; | ||
epsilon = ["1"]; % epsilon/255 | ||
|
||
% Initialize directories | ||
% mkdir('plots'); | ||
% for i=datasets | ||
% mkdir("plots/"+i); | ||
% end | ||
|
||
%% Visualize verification results/trends | ||
|
||
% What do we want to show? | ||
|
||
% 1) Trends | ||
% - Time: How does the time increases as the input set gets larger? | ||
% - Epsilon increasing | ||
% - Number of pixels increasing | ||
% - results: How robust are the models as we increase the size of the attack? more unknowns? more sats? | ||
% - Epsilon increasing | ||
% - Number of pixels increasing | ||
% 2) Certified robust accuracy | ||
% - Is it much worse than the accuracy of the model? | ||
% - Do we need more samples? | ||
|
||
|
||
% Time for plots (maxpixels variable) | ||
for ds = datasets | ||
for adv = attackType | ||
for ep = epsilon | ||
|
||
% Initialize vars to plot | ||
sat = []; | ||
unsat = []; | ||
unk = []; | ||
miss = []; | ||
avgVT = []; | ||
avgRT = []; | ||
|
||
% Get data | ||
for mp = maxpixels | ||
resFile = "results/verification_" + ds + "_" + adv + "_" + ep + "_" + mp +".mat"; | ||
res = summarize_results(resFile); | ||
sat = [sat, res.sat]; | ||
unsat = [unsat, res.unsat]; | ||
unk = [unk, res.unknown]; | ||
miss = [miss, res.misclassified]; | ||
avgVT = [avgVT, res.avgTime]; % average computation time to verify one instance | ||
avgRT = [avgRT, res.avgRT]; % average computation time to compute the reachable sets (miss and sat do not count here) | ||
end | ||
counts = [unsat; sat; unk; miss]; | ||
|
||
|
||
% Create figure (results) | ||
f = figure('visible','off'); | ||
bar(1:4, counts','stacked') % plot verification results | ||
grid; | ||
% set values for x-axis | ||
xticks([1 2 3 4]); | ||
xticklabels(maxpixels); | ||
% axis labels | ||
xlabel('Max pixels perturbed'); | ||
ylabel('# instances') | ||
% legend | ||
leg = {"unsat", "sat", "unknown", "missclass"}; | ||
legend(leg, 'Location', 'best'); | ||
% save figure | ||
saveas(f, "plots/" + ds + "/verification_" + adv + "_" + ep + ".png"); | ||
|
||
% create figure (time) | ||
f = figure('visible','off'); | ||
% plot computation time results | ||
plot(1:4, avgVT, 'r--o'); | ||
hold on; | ||
plot(1:4, avgRT, 'b--v'); | ||
% set values for x-axis | ||
xticks([1 2 3 4]); | ||
xticklabels(maxpixels) | ||
% axis labels | ||
xlabel('Max pixels perturbed'); | ||
ylabel("Average Time (s)") | ||
% legend | ||
leg = {"all", "unsat & unknown"}; | ||
legend(leg, 'Location', 'best'); | ||
% save figure | ||
saveas(f, "plots/" + ds + "/avgTime_" + adv + "_" + ep + ".png"); | ||
|
||
end | ||
end | ||
end | ||
|
||
% Time for plots (epsilon variable) | ||
for ds = datasets | ||
for adv = attackType | ||
for mp = maxpixels | ||
|
||
% Initialize vars to plot | ||
sat = []; | ||
unsat = []; | ||
unk = []; | ||
miss = []; | ||
avgVT = []; | ||
avgRT = []; | ||
|
||
% Get data | ||
for ep = epsilon | ||
resFile = "results/verification_" + ds + "_" + adv + "_" + ep + "_" + mp +".mat"; | ||
res = summarize_results(resFile); | ||
sat = [sat, res.sat]; | ||
unsat = [unsat, res.unsat]; | ||
unk = [unk, res.unknown]; | ||
miss = [miss, res.misclassified]; | ||
avgVT = [avgVT, res.avgTime]; % average computation time to verify one instance | ||
avgRT = [avgRT, res.avgRT]; % average computation time to compute the reachable sets (miss and sat do not count here) | ||
end | ||
counts = [unsat; sat; unk; miss]; | ||
|
||
% Create figure (results) | ||
f = figure('visible','off'); | ||
bar(1:3, counts','stacked') % plot results | ||
grid | ||
% set values for x-axis | ||
xticks([1 2 3]); | ||
xticklabels(epsilon) | ||
% axis labels | ||
xlabel('epsilon (\epsilon)'); | ||
ylabel('# instances') | ||
% legend | ||
leg = {"unsat", "sat", "unknown", "missclass"}; | ||
legend(leg, 'Location', 'best'); | ||
% save figure | ||
saveas(f, "plots/" + ds + "/verification_" + adv + "_" + mp + ".png"); | ||
|
||
% create figure (time) | ||
f = figure('visible','off'); | ||
% plot timing results | ||
plot(1:3, avgVT, 'r--o'); | ||
hold on; | ||
plot(1:3, avgRT, 'b--v'); | ||
% set values for x-axis | ||
xticks([1 2 3]); | ||
xticklabels(epsilon) | ||
% axis labels | ||
xlabel('epsilon (\epsilon)'); | ||
ylabel("Average Time (s)") | ||
% legend | ||
leg = {"all", "unsat & unknown"}; | ||
legend(leg, 'Location', 'best'); | ||
% save figure | ||
saveas(f, "plots/" + ds + "/avgTime_" + adv + "_" + mp + ".png"); | ||
|
||
end | ||
end | ||
end | ||
|
||
|
||
%% Helper functions | ||
|
||
function summary = summarize_results(resFile) | ||
|
||
% Provide details from results file | ||
summary = struct; | ||
data = load(resFile); | ||
results = data.results; | ||
|
||
% Total number of samples examined | ||
summary.N = length(results); | ||
|
||
% Verified (unsat) | ||
summary.unsat = sum(results(:,1) == 1); | ||
|
||
% Falsified (sat) from input set | ||
summary.sat = sum(results(:,1) == 0); | ||
|
||
% Unknown (not using exact) | ||
summary.unknown = sum(results(:,1) == 2); | ||
|
||
% Misclasified (sat) of original image | ||
summary.misclassified = sum(results(:,1) == -1); | ||
|
||
% Also possible -2 (error), which may be out of memory (most common here) | ||
summary.avgTime = sum(results(:,2))/summary.N; | ||
|
||
% Find instances where reachability is needed | ||
x = [find(results(:,1)==2); find(results(:,1)==1)]; | ||
nx = length(x); % how many instances reachability is computed for | ||
|
||
% Average time only for unknown and unsat properties (reachsets computed) | ||
summary.avgRT = sum(results(x,2))/nx; | ||
end |