lemon/random.h
changeset 2607 78e8de179fe2
parent 2596 9c00e972cdfd
child 2608 207efbaea269
equal deleted inserted replaced
20:f1cd1fdea879 21:9131185b54f5
   800 	  {
   800 	  {
   801 	    xi=1.0-std::log(V1);
   801 	    xi=1.0-std::log(V1);
   802 	    nu=V0*std::exp(-xi);
   802 	    nu=V0*std::exp(-xi);
   803 	  }
   803 	  }
   804       } while(nu>std::pow(xi,delta-1.0)*std::exp(-xi));
   804       } while(nu>std::pow(xi,delta-1.0)*std::exp(-xi));
   805       return theta*(xi-gamma(int(std::floor(k))));
   805       return theta*(xi+gamma(int(std::floor(k))));
   806     }
   806     }
   807     
   807     
   808       
   808       
   809     ///@}
   809     ///@}
   810     
   810