Guest User

Untitled

a guest
May 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. INTY<-function(x,theta){
  2. #Set Initial Params
  3. alpha<-theta[1]
  4. lambda<-c(theta[2],theta[3],theta[4])
  5. #Actually integrate
  6. x^alpha*exp(-lambda[2]*x^alpha)*Vectorize(function(x){
  7. gammainc(lambda[1]*x^alpha, 1+1/alpha)[[2]]
  8. })
  9. }
  10.  
  11. integrate(INTY,theta=theta_high,0,Inf)
Add Comment
Please, Sign In to add comment