References 103
To compute statistics, we declare an M-dimensional combined-sample
vector for each random variable of interest, say
M = n * nn | ARRAY xI[M]
for the variable xImpact. After each vectorized run, the resulting n sample
values
xImpact[1], xImpact[2], …, xImpact[n] are fed to the combined-
sample vector
xI with a small one-line loop
for i = 1 to n | xI[i + (k - 1) * n] = xImpact[i] | next
The M-dimensional combined-sample array xI will then produce Monte
Carlo statistics such as averages and probability-density estimates exactly as
in Sections 4-8 to 4-10.
REFERENCES
1. http://www.cooper.edu/engineering/chemechem/MMC/tutor.html presents an
excellent review of large-scale Monte Carlo simulation.
2. G. A. Korn, Interactive Dynamic System Simulation with Microsoft Windows,
Taylor and Francis, London, 1998.
3. M. Galassi et al., Reference Manual for the GNU Scientific Library (gsl)
(current edition), ftp://ftp.gnu.org/gnu/gsl/ (printed copies can be purchased
from Network Theory Ltd. at http://www.network-theory.co.uk/gsl/manual/).
4. J. L. Melsa and A. P. Sage, An Introduction to Probability and Random
Processes, Prentice-Hall, Englewood Cliffs, NJ, 1971.
5. G. A. Korn and T. M. Korn, Mathematical Handbook for Scientists and
Engineers, revised edition, Dover, New York, 2000.
6. G. A. Korn and J. V. Wait, Digital Continuous-System Simulation, Prentice-
Hall, Englewood Cliffs, NJ, 1978.
7. G. A. Korn, Random-Process Simulation and Measurements, McGraw-Hill,
New York, 1966.
8. K. Fukunaga, Introduction to Statistical Pattern Recognition, Academic Press,
New York, 1972.
9. G. A. Korn, Measurement of Probability Density, Entropy, and Information in
Interactive Monte Carlo Simulation, in Proceedings of the SCS MULTICON,
San Diego, CA, 1999.