Sobol skipTo()
Posted by
Fabien Le Floc'h-3 on
URL: http://quantlib.414.s1.nabble.com/Correlation-Matrix-tp36p38.html
Hello,
I believe there might be a small mistake in Quantlib 1.01 sobolrsg.cpp
SobolRsg::skipTo method. The method starts with:
void SobolRsg::skipTo(unsigned long skip) {
unsigned long N = skip+1;
unsigned int ops = (unsigned int)(std::log((double)N)/M_LN2)+1;
It should be:
void SobolRsg::skipTo(unsigned long skip) {
unsigned long N = skip<<1;
unsigned int ops = (unsigned int)(std::log((double)N)/M_LN2)+1;
Regards,
Fabien Le Floc'h.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users