deeenes

drug target stuff

Apr 28th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.70 KB | None | 0 0
  1. a <- length(g)/(max(g)-min(g))
  2. i <- min(g)
  3. j <- max(g)
  4. e <- 10
  5. hh <- 0
  6. t <- 1
  7. c <- 0
  8.  
  9. while(TRUE){
  10.     c <- c+1
  11.     j <- j-e
  12.     h <- densty(i,j,g)
  13.     print(paste("iteration: interval [",i,";",j,"] average: ",h,sep=""))
  14.     if(h<hh & t==1){
  15.         j <- j+e
  16.         e <- e*2
  17.         h <- hh
  18.         t <- 2
  19.     }
  20.     if(h>hh & t>1){
  21.         e <- 10
  22.         t <- 1
  23.         hh <- h
  24.     }
  25.     if(h<hh & t>1){
  26.         j <- j+e
  27.         if(t==2){
  28.             e <- e/4
  29.         }else{
  30.             e <- round(e/2)
  31.         }
  32.         if(e==1){
  33.             print(paste("i = ",i,sep=""))
  34.             print(paste("j = ",j,sep=""))
  35.             print(paste("c = ",c,sep=""))
  36.             print(paste("h = ",hh,sep=""))
  37.             print(paste("a = ",a,sep=""))
  38.             high <- list(i,j,h)
  39.             break
  40.         }
  41.         h <- hh
  42.         t <- 3
  43.     }
  44.     if(h>hh & t==1){
  45.         hh <- h
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment