.DESLib.RandomLib.Examples

Information

This package contains some examples that show the use of the RandomLib library and its components.

CMRGSimple, Mean, VariatesSimple and VariatesSimple2 are very simple examples of uniform random number and random variates generation.

Test is a larger test case for uniform random number generation. This example is based in the test code provided by L'Ecuyer with his RngStream C implementation.
This example has been used for validating the implementation of the CMRG library in comparison with the results obtained with the mentioned C implementation.

Author:
Victorino Sanz
Dpto. Inform?tica y Autom?tica, UNED
Juan del Rosal, 16
28040, Madrid
Spain
email: vsanz@dia.uned.es

Copying:

Licensed by Victorino Sanz under the Modelica License 2
Copyright 2009, Victorino Sanz.

This Modelica packages is free software and the use is completely at your ouwn risk; it can be redistributed and/or modified under the terms of the Modelica license 2, see the license conditions (including the disclaimer of warranty) here or at http://www.modelica.org/licenses/ModelicaLicense2


Contents

NameDescription
CMRGSimplegenerates 10 random numbers from an RngStream
Meangenerates random variates (one per second) and calculates the mean of the generated samples
VariatesSimplegenerates 5 random variates with Exponential(5) distribution
VariatesSimple2generates a discrete variate of each distribution at each integration step
TestPierre L'Ecuyer test program for RngStreams

Generated at 2024-04-18T18:15:58Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos