Simulated annealing: Difference between revisions
Content added Content deleted
Line 94: | Line 94: | ||
For your platform you might have to modify parts, such as the call to getentropy(3). |
For your platform you might have to modify parts, such as the call to getentropy(3). |
||
You can |
You can easily change the kind of floating point used. I apologize for false precision in printouts using the default single precision floating point. |
||
Some might notice the calculations of random integers are done in a way that may introduce a bias, which is miniscule as long as the integer is much smaller than 2 to the 31st power. I mention this now so no one will complain about it later. |
|||
<lang c>#include <math.h> |
<lang c>#include <math.h> |