Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Time recordings of four datasets (Corel Color Moments, Phy, Miniboone,
- % Pokerhand), for 5 different algorithm versions: find() and hybrid with
- % cutoff at 0.01, 0.05, 0.1 and 0.2
- %script plots all times for good overview
- %datasets:
- % CCM - rows 1, 5, 9
- % Phy - rows 2, 6, 10
- % miniboone - rows 3, 7, 11
- % pokerhand - rows 4, 8, 12
- %algorithms:
- % find - column 1
- % hybrid cutoff 0.01 - column 2
- % hybrid cutoff 0.05 - column 3
- % hybrid cutoff 0.1 - column 4
- % hybrid cutoff 0.5 - column 5
- times = [
- 13.96 14.05 16.83 15.89 17.57;
- 55.95 56.84 69.23 119.28 126.78;
- 29.43 31.74 30.71 31.91 32.56;
- 166.97 212.37 199.72 200.91 211.93;
- 3.87 2.61 3.2 2.5 2.92;
- 26.91 29.11 43.72 44.23 44.25;
- 6.81 3.82 3.51 3.57 3.54;
- 51.81 22 20.6 21.1 21.1;
- 27.91 36.58 38.36 48.13 37.67;
- 28.24 29.2 46.22 46.24 25.85;
- 7.27 3.9 3.5 3.57 3.52;
- 58.83 36.35 36.44 36.53 24.91];
- figure(1)
- subplot(2, 2, 1)
- bar(times([1, 5, 9], :)')
- title('Corel Color Moments')
- xlabel('algorithm')
- ylabel('time(seconds)')
- legend('L = 30, K = 10', 'L = 10, K = 10', 'L = 10, K = 5', 'location', 'NorthWest')
- set(gca, 'XTickLabel', {'find', 'cutoff 0.01', 'cutoff 0.05', 'cutoff 0.1', 'cutoff 0.2'})
- subplot(2, 2, 2)
- bar(times([2, 6, 10], :)')
- title('Phy')
- xlabel('algorithm')
- ylabel('time(seconds)')
- legend('L = 30, K = 10', 'L = 10, K = 10', 'L = 10, K = 5', 'location', 'NorthWest')
- set(gca, 'XTickLabel', {'find', 'cutoff 0.01', 'cutoff 0.05', 'cutoff 0.1', 'cutoff 0.2'})
- subplot(2, 2, 3)
- bar(times([3, 7, 11], :)')
- title('Miniboone')
- xlabel('algorithm')
- ylabel('time(seconds)')
- legend('L = 30, K = 10', 'L = 10, K = 10', 'L = 10, K = 5', 'location', 'NorthWest')
- set(gca, 'XTickLabel', {'find', 'cutoff 0.01', 'cutoff 0.05', 'cutoff 0.1', 'cutoff 0.2'})
- subplot(2, 2, 4)
- bar(times([4, 8, 12], :)')
- title('Pokerhand')
- xlabel('algorithm')
- ylabel('time(seconds)')
- legend('L = 30, K = 10', 'L = 10, K = 10', 'L = 10, K = 5', 'location', 'NorthWest')
- set(gca, 'XTickLabel', {'find', 'cutoff 0.01', 'cutoff 0.05', 'cutoff 0.1', 'cutoff 0.2'})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement