Enum MersenneExponent
- java.lang.Object
-
- java.lang.Enum<MersenneExponent>
-
- dev.nm.stat.random.rng.univariate.uniform.mersennetwister.dynamiccreation.MersenneExponent
-
- All Implemented Interfaces:
Serializable
,Comparable<MersenneExponent>
public enum MersenneExponent extends Enum<MersenneExponent>
The value of a Mersenne Exponent p is a parameter for creating a Mersenne-Twister random number generator with a period of 2p.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
Gets the value of this Mersenne exponent.static MersenneExponent
valueOf(String name)
Returns the enum constant of this type with the specified name.static MersenneExponent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
P521
public static final MersenneExponent P521
-
P607
public static final MersenneExponent P607
-
P1279
public static final MersenneExponent P1279
-
P2203
public static final MersenneExponent P2203
-
P2281
public static final MersenneExponent P2281
-
P3217
public static final MersenneExponent P3217
-
P4253
public static final MersenneExponent P4253
-
P4423
public static final MersenneExponent P4423
-
P9689
public static final MersenneExponent P9689
-
P9941
public static final MersenneExponent P9941
-
P11213
public static final MersenneExponent P11213
-
P19937
public static final MersenneExponent P19937
-
P21701
public static final MersenneExponent P21701
-
P23209
public static final MersenneExponent P23209
-
P44497
public static final MersenneExponent P44497
-
-
Method Detail
-
values
public static MersenneExponent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MersenneExponent c : MersenneExponent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MersenneExponent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()
Gets the value of this Mersenne exponent.- Returns:
- the value of this Mersenne exponent
-
-