COIN-OR::LEMON - Graph Library

Changeset 2599:b9905565d185 in lemon-0.x


Ignore:
Timestamp:
04/03/08 14:06:48 (11 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3482
Message:

Serious bugfix in Random::gamma()
Backport from hg b6bede534255

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/random.h

    r2596 r2599  
    803803          }
    804804      } 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))));
    806806    }
    807807   
Note: See TracChangeset for help on using the changeset viewer.