Advertisement
Guest User

Untitled

a guest
May 28th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #### TODO: add data generating as in 6 task
  2.  
  3. summary(lm(data = result_table, time ~ factor))
  4.  
  5. attach(result_table)
  6.  
  7. plot(result_table$time[factor == 'fully sorted'], col = "blue", ylim = c(0, 1))
  8. abline(0.00210, 0, col = "blue", lwd = 1)
  9.  
  10. points(result_table$time[factor == 'half-sorted'], col = "red")
  11. abline(0.00210 + 0.37980, 0, col = "red", lwd = 1)
  12.  
  13. points(result_table$time[factor == 'reverse'], col = "green")
  14. abline(0.00210 + 0.84620, 0, col = "green", lwd = 1)
  15.  
  16. points(result_table$time[factor == 'random'], col = "black")
  17. abline(0.00210 + 0.41620, 0, col = "black", lwd = 1)
  18.  
  19. #### TODO: add prediction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement