Numerical Recipes Forum  

Go Back   Numerical Recipes Forum > Numerical Recipes Official Announcements > Official Bug Reports (NR3, the Third Edition)

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-17-2009, 03:01 PM
Bill Press Bill Press is offline
Numerical Recipes Author
Join Date: Jan 2002
Posts: 227
(minor) bug in markovgen (fixed in V3.04)

In Section 16.3, in function markovgen, in the line 11 from the bottom (r=ran.doub() / cum[j][m-1]), the "/" (divide) should be a " * " (multiply). This bug only affects the case where the function is trying to recover from questionable user input, namely transition matrix row sums that are not exactly 1.

Thanks to SimonG for finding this (see thread).
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 12:01 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.