Advertisement
Guest User

Untitled

a guest
May 10th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 2.03 KB | None | 0 0
  1. % Time recordings of four datasets (Corel Color Moments, Phy, Miniboone,
  2. % Pokerhand), for 5 different algorithm versions: find() and hybrid with
  3. % cutoff at 0.01, 0.05, 0.1 and 0.2
  4.  
  5. %script plots all times for good overview
  6.  
  7. %datasets:
  8. % CCM - rows 1, 5, 9
  9. % Phy - rows 2, 6, 10
  10. % miniboone - rows 3, 7, 11
  11. % pokerhand - rows 4, 8, 12
  12.  
  13. %algorithms:
  14. % find - column 1
  15. % hybrid cutoff 0.01 - column 2
  16. % hybrid cutoff 0.05 - column 3
  17. % hybrid cutoff 0.1 - column 4
  18. % hybrid cutoff 0.5 - column 5
  19.  
  20. times = [
  21. 13.96 14.05 16.83 15.89 17.57;
  22. 55.95 56.84 69.23 119.28 126.78;
  23. 29.43 31.74 30.71 31.91 32.56;
  24. 166.97 212.37 199.72 200.91 211.93;
  25. 3.87 2.61 3.2 2.5 2.92;
  26. 26.91 29.11 43.72 44.23 44.25;
  27. 6.81 3.82 3.51 3.57 3.54;
  28. 51.81 22 20.6 21.1 21.1;
  29. 27.91 36.58 38.36 48.13 37.67;
  30. 28.24 29.2 46.22 46.24 25.85;
  31. 7.27 3.9 3.5 3.57 3.52;
  32. 58.83 36.35 36.44 36.53 24.91];
  33.  
  34. figure(1)
  35. subplot(2, 2, 1)
  36. bar(times([1, 5, 9], :)')
  37. title('Corel Color Moments')
  38. xlabel('algorithm')
  39. ylabel('time(seconds)')
  40. legend('L = 30, K = 10', 'L = 10, K = 10', 'L = 10, K = 5', 'location', 'NorthWest')
  41. set(gca, 'XTickLabel', {'find', 'cutoff 0.01', 'cutoff 0.05', 'cutoff 0.1', 'cutoff 0.2'})
  42.  
  43. subplot(2, 2, 2)
  44. bar(times([2, 6, 10], :)')
  45. title('Phy')
  46. xlabel('algorithm')
  47. ylabel('time(seconds)')
  48. legend('L = 30, K = 10', 'L = 10, K = 10', 'L = 10, K = 5', 'location', 'NorthWest')
  49. set(gca, 'XTickLabel', {'find', 'cutoff 0.01', 'cutoff 0.05', 'cutoff 0.1', 'cutoff 0.2'})
  50.  
  51. subplot(2, 2, 3)
  52. bar(times([3, 7, 11], :)')
  53. title('Miniboone')
  54. xlabel('algorithm')
  55. ylabel('time(seconds)')
  56. legend('L = 30, K = 10', 'L = 10, K = 10', 'L = 10, K = 5', 'location', 'NorthWest')
  57. set(gca, 'XTickLabel', {'find', 'cutoff 0.01', 'cutoff 0.05', 'cutoff 0.1', 'cutoff 0.2'})
  58.  
  59. subplot(2, 2, 4)
  60. bar(times([4, 8, 12], :)')
  61. title('Pokerhand')
  62. xlabel('algorithm')
  63. ylabel('time(seconds)')
  64. legend('L = 30, K = 10', 'L = 10, K = 10', 'L = 10, K = 5', 'location', 'NorthWest')
  65. 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