RNGMgr

Versión 1.1.1 (16.7 KB) por Jeff Miller
A class to facilitate saving RNG seeds when it may be desirable to regenerate the same sequence of random numbers.
39 descargas
Actualizado 11 Feb 2019

Ver licencia

The basic RNGMgr framework is that there is some iterative process that may be started and stopped multiple times (e.g., start with iteration 1, stop after 100 iterations, restart at iteration 101 and stop at iteration 500, etc). The seed is saved each time the process is (re-)started, so the iterative process can be restarted from that point to regenerate the same RNG sequence if necessary.
To use this class, the user must minimally:
- rngmgr = RNGMgr(FileName) % Give the name of the file for storing RNG states
- Call rngmgr.Iteration at the start of the iteration loop.
- Call rngmgr.Save at the end of the iteration loop.

Citar como

Jeff Miller (2024). RNGMgr (https://www.mathworks.com/matlabcentral/fileexchange/70259-rngmgr), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2016b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Random Number Generation en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.1.1