Enum UniformRNG.Method
- java.lang.Object
-
- java.lang.Enum<UniformRNG.Method>
-
- dev.nm.stat.random.rng.univariate.uniform.UniformRNG.Method
-
- All Implemented Interfaces:
Serializable
,Comparable<UniformRNG.Method>
- Enclosing class:
- UniformRNG
public static enum UniformRNG.Method extends Enum<UniformRNG.Method>
the pseudo uniform random number generators available
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LECUYER
LecuyerLEHMER
LehmerMERSENNE_TWISTER
Mersenne Twister (recommended)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UniformRNG.Method
valueOf(String name)
Returns the enum constant of this type with the specified name.static UniformRNG.Method[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MERSENNE_TWISTER
public static final UniformRNG.Method MERSENNE_TWISTER
Mersenne Twister (recommended)
-
LEHMER
public static final UniformRNG.Method LEHMER
Lehmer
-
LECUYER
public static final UniformRNG.Method LECUYER
Lecuyer
-
-
Method Detail
-
values
public static UniformRNG.Method[] 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 (UniformRNG.Method c : UniformRNG.Method.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UniformRNG.Method 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
-
-