This commit is contained in:
Gilles 2016-05-29 16:31:15 +02:00
parent c82bb1b56a
commit fc3e1eac67
1 changed files with 5 additions and 5 deletions

View File

@ -253,11 +253,11 @@ public enum RandomSource {
* <p> * <p>
* Example of usage: * Example of usage:
* <pre><code> * <pre><code>
* UniformRandomProvider rng = RandomSource.create(Source.MT); * UniformRandomProvider rng = RandomSource.create(RandomSource.MT);
* </code></pre> * </code></pre>
* </p> * </p>
* *
* @param source {@link RandomSource RNG type}. * @param source {@link RNG type}.
* @return the RNG. * @return the RNG.
*/ */
public static UniformRandomProvider create(RandomSource source) { public static UniformRandomProvider create(RandomSource source) {
@ -270,7 +270,7 @@ public enum RandomSource {
* <p> * <p>
* Example of usage: * Example of usage:
* <pre><code> * <pre><code>
* UniformRandomProvider rng = RandomSource.create(Source.TWO_CMRES_SELECT, 26219, 6, 9); * UniformRandomProvider rng = RandomSource.create(RandomSource.TWO_CMRES_SELECT, 26219, 6, 9);
* </code></pre> * </code></pre>
* </p> * </p>
* *
@ -304,7 +304,7 @@ public enum RandomSource {
* </li> * </li>
* </p> * </p>
* *
* @param source {@link RandomSource RNG type}. * @param source {@link RNG type}.
* @param seed Seed value. It can be {@code null} (in which case a * @param seed Seed value. It can be {@code null} (in which case a
* random value will be used). * random value will be used).
* @param data Additional arguments to the implementation's constructor. * @param data Additional arguments to the implementation's constructor.
@ -359,7 +359,7 @@ public enum RandomSource {
* This parameter must have been obtained by a call to * This parameter must have been obtained by a call to
* {@link #saveState(UniformRandomProvider) saveState(rng)} * {@link #saveState(UniformRandomProvider) saveState(rng)}
* where {@code rng} is either the same object as {@code provider}, * where {@code rng} is either the same object as {@code provider},
* or an object of the same concrete type. * or an object of the exact same class.
* @throws MathUnsupportedOperationException if the {@code provider} is * @throws MathUnsupportedOperationException if the {@code provider} is
* not an object created by this factory or the underlying source of * not an object created by this factory or the underlying source of
* randomness does not support this functionality. * randomness does not support this functionality.