SHARE
TWEET

Untitled

a guest May 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # function  for  plotting  data
  2. plotresult  <- function(file="/h/dk/u/nyg15eko/edaa35/result1.txt" , start = 100) {
  3. system ("gcc -o Radix RadixSort.c")
  4. system ("./Radix data1.txt  result1.txt  600")
  5. data  <- read.csv(file, header = TRUE, sep= " ")
  6. data  <- data[start:nrow(data) ,]
  7. plot(data , type = "l")
  8. means <- rbind(means, mean(data[,2]))
  9. }
  10. system ("gcc -o Radix RadixSort.c")
  11. system ("./Radix data1.txt  result1.txt  600")
  12. data  <- read.csv("/h/dk/u/nyg15eko/edaa35/result1.txt", header = TRUE, sep= ",")
  13. data  <- data[100:nrow(data) ,]
  14. plot(data , type = "l")
  15. means <- mean(data[,2])
  16. for(i in 1:30){
  17.   system ("gcc -o Radix RadixSort.c")
  18.   system ("./Radix data1.txt  result1.txt  600")
  19.   data  <- read.csv("/h/dk/u/nyg15eko/edaa35/result1.txt", header = TRUE, sep= ",")
  20.   data  <- data[100:nrow(data) ,]
  21.   means <- rbind(means, mean(data[,2]))
  22. }
  23. truemean <- mean(means)
  24. Confidence <- confidenceInterval(means)
  25. pdf(" result1.pdf")
  26. plotresult (" result1.txt") # plot to pdf  file
  27. dev.off()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top