You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/05/26 17:43:33 UTC
svn commit: r1486420 - in /commons/proper/math/trunk/src/site:
resources/images/userguide/
resources/images/userguide/low_discrepancy_sequences.png
xdoc/userguide/random.xml
Author: tn
Date: Sun May 26 15:43:33 2013
New Revision: 1486420
URL: http://svn.apache.org/r1486420
Log:
Added section about low-discrepancy sequences to user-guide.
Added:
commons/proper/math/trunk/src/site/resources/images/userguide/
commons/proper/math/trunk/src/site/resources/images/userguide/low_discrepancy_sequences.png (with props)
Modified:
commons/proper/math/trunk/src/site/xdoc/userguide/random.xml
Added: commons/proper/math/trunk/src/site/resources/images/userguide/low_discrepancy_sequences.png
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/site/resources/images/userguide/low_discrepancy_sequences.png?rev=1486420&view=auto
==============================================================================
Binary file - no diff available.
Propchange: commons/proper/math/trunk/src/site/resources/images/userguide/low_discrepancy_sequences.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Modified: commons/proper/math/trunk/src/site/xdoc/userguide/random.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/site/xdoc/userguide/random.xml?rev=1486420&r1=1486419&r2=1486420&view=diff
==============================================================================
--- commons/proper/math/trunk/src/site/xdoc/userguide/random.xml (original)
+++ commons/proper/math/trunk/src/site/xdoc/userguide/random.xml Sun May 26 15:43:33 2013
@@ -227,6 +227,31 @@ RealMatrix covariance = MatrixUtils.crea
<a href="../apidocs/org/apache/commons/math3/random/NormalizedRandomGenerator.html">NormalizedRandomGenerator</a>
may be used.
</p>
+ <p><dl>
+ <dt>Low discrepancy sequences</dt>
+ <dd>
+ There exist several quasi-random sequences with the property that for all values of N, the subsequence
+ x<sub>1</sub>, ..., x<sub>N</sub> has low discrepancy, which results in equi-distributed samples.
+ While their quasi-randomness makes them unsuitable for most applications (i.e. the sequence of values
+ is completely deterministic), their unique properties give them an important advantage for quasi-Monte Carlo simulations.<br/>
+ Currently, the following low-discrepancy sequences are supported:
+ <ul>
+ <li><a href="../apidocs/org/apache/commons/math3/random/SobolSequenceGenerator.html">Sobol sequence</a> (pre-configured up to dimension 1000)</li>
+ <li><a href="../apidocs/org/apache/commons/math3/random/HaltonSequenceGenerator.html">Halton sequence</a> (pre-configured up to dimension 40)</li>
+ </ul>
+ <source>
+// Create a Sobol sequence generator for 2-dimensional vectors
+RandomVectorGenerator generator = new SobolSequence(2);
+
+// Use the generator to generate vectors
+double[] randomVector = generator.nextVector();
+... </source>
+ The figure below illustrates the unique properties of low-discrepancy sequences when generating N samples in the interval [0, 1].
+ Roughly speaking, such sequences fill up the respective space more evenly which leads to faster convergence in quasi-Monte Carlo simulations.
+ <img src="../images/userguide/low_discrepancy_sequences.png" alt="Comparison of low-discrepancy sequences"/>
+ </dd></dl>
+ </p>
+ <p></p>
</subsection>
<subsection name="2.4 Random Strings" href="strings">
@@ -448,7 +473,7 @@ RealMatrix covariance = MatrixUtils.crea
<p>
<table border="1" align="center">
- <tr BGCOLOR="#CCCCFF"><td colspan="2"><font size="+2">Example of performances</font></td></tr>
+ <tr BGCOLOR="#CCCCFF"><td colspan="2"><font size="+1">Example of performances</font></td></tr>
<tr BGCOLOR="#EEEEFF"><font size="+1"><td>Name</td><td>generation rate (relative to MersenneTwister)</td></font></tr>
<tr><td><a href="../apidocs/org/apache/commons/math3/random/MersenneTwister.html">MersenneTwister</a></td><td>1</td></tr>
<tr><td><a href="../apidocs/org/apache/commons/math3/random/JDKRandomGenerator.html">JDKRandomGenerator</a></td><td>between 0.96 and 1.16</td></tr>