Enum ProviderBuilder.RandomSourceInternal
- java.lang.Object
-
- java.lang.Enum<ProviderBuilder.RandomSourceInternal>
-
- org.apache.commons.rng.simple.internal.ProviderBuilder.RandomSourceInternal
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProviderBuilder.RandomSourceInternal>,java.lang.constant.Constable
- Enclosing class:
- ProviderBuilder
public static enum ProviderBuilder.RandomSourceInternal extends java.lang.Enum<ProviderBuilder.RandomSourceInternal>
Identifiers of the generators.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ISAACSource of randomness isISAACRandom.JDKSource of randomness isJDKRandom.KISSSource of randomness isKISSRandom.MTSource of randomness isMersenneTwister.MT_64Source of randomness isMersenneTwister64.MWC_256Source of randomness isMultiplyWithCarry256.SPLIT_MIX_64Source of randomness isSplitMix64.TWO_CMRESSource of randomness isTwoCmres.TWO_CMRES_SELECTSource of randomness isTwoCmreswith explicit selection of the two subcycle generators.WELL_1024_ASource of randomness isWell1024a.WELL_19937_ASource of randomness isWell19937a.WELL_19937_CSource of randomness isWell19937c.WELL_44497_ASource of randomness isWell44497a.WELL_44497_BSource of randomness isWell44497b.WELL_512_ASource of randomness isWell512a.XO_RO_SHI_RO_128_PLUSSource of randomness isXoRoShiRo128Plus.XO_RO_SHI_RO_128_SSSource of randomness isXoRoShiRo128StarStar.XO_RO_SHI_RO_64_SSource of randomness isXoRoShiRo64Star.XO_RO_SHI_RO_64_SSSource of randomness isXoRoShiRo64StarStar.XO_SHI_RO_128_PLUSSource of randomness isXoShiRo128Plus.XO_SHI_RO_128_SSSource of randomness isXoShiRo128StarStar.XO_SHI_RO_256_PLUSSource of randomness isXoShiRo256Plus.XO_SHI_RO_256_SSSource of randomness isXoShiRo256StarStar.XO_SHI_RO_512_PLUSSource of randomness isXoShiRo512Plus.XO_SHI_RO_512_SSSource of randomness isXoShiRo512StarStar.XOR_SHIFT_1024_SSource of randomness isXorShift1024Star.XOR_SHIFT_1024_S_PHISource of randomness isXorShift1024StarPhi.
-
Method Summary
Modifier and Type Method Description java.lang.Class<?>getRng()<SEED> booleanisNativeSeed(SEED seed)Checks whether the type of givenseedis the native type of the implementation.static ProviderBuilder.RandomSourceInternalvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProviderBuilder.RandomSourceInternal[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JDK
public static final ProviderBuilder.RandomSourceInternal JDK
Source of randomness isJDKRandom.
-
WELL_512_A
public static final ProviderBuilder.RandomSourceInternal WELL_512_A
Source of randomness isWell512a.
-
WELL_1024_A
public static final ProviderBuilder.RandomSourceInternal WELL_1024_A
Source of randomness isWell1024a.
-
WELL_19937_A
public static final ProviderBuilder.RandomSourceInternal WELL_19937_A
Source of randomness isWell19937a.
-
WELL_19937_C
public static final ProviderBuilder.RandomSourceInternal WELL_19937_C
Source of randomness isWell19937c.
-
WELL_44497_A
public static final ProviderBuilder.RandomSourceInternal WELL_44497_A
Source of randomness isWell44497a.
-
WELL_44497_B
public static final ProviderBuilder.RandomSourceInternal WELL_44497_B
Source of randomness isWell44497b.
-
MT
public static final ProviderBuilder.RandomSourceInternal MT
Source of randomness isMersenneTwister.
-
ISAAC
public static final ProviderBuilder.RandomSourceInternal ISAAC
Source of randomness isISAACRandom.
-
SPLIT_MIX_64
public static final ProviderBuilder.RandomSourceInternal SPLIT_MIX_64
Source of randomness isSplitMix64.
-
XOR_SHIFT_1024_S
public static final ProviderBuilder.RandomSourceInternal XOR_SHIFT_1024_S
Source of randomness isXorShift1024Star.
-
TWO_CMRES
public static final ProviderBuilder.RandomSourceInternal TWO_CMRES
Source of randomness isTwoCmres.
-
TWO_CMRES_SELECT
public static final ProviderBuilder.RandomSourceInternal TWO_CMRES_SELECT
Source of randomness isTwoCmreswith explicit selection of the two subcycle generators.
-
MT_64
public static final ProviderBuilder.RandomSourceInternal MT_64
Source of randomness isMersenneTwister64.
-
MWC_256
public static final ProviderBuilder.RandomSourceInternal MWC_256
Source of randomness isMultiplyWithCarry256.
-
KISS
public static final ProviderBuilder.RandomSourceInternal KISS
Source of randomness isKISSRandom.
-
XOR_SHIFT_1024_S_PHI
public static final ProviderBuilder.RandomSourceInternal XOR_SHIFT_1024_S_PHI
Source of randomness isXorShift1024StarPhi.
-
XO_RO_SHI_RO_64_S
public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_64_S
Source of randomness isXoRoShiRo64Star.
-
XO_RO_SHI_RO_64_SS
public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_64_SS
Source of randomness isXoRoShiRo64StarStar.
-
XO_SHI_RO_128_PLUS
public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_128_PLUS
Source of randomness isXoShiRo128Plus.
-
XO_SHI_RO_128_SS
public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_128_SS
Source of randomness isXoShiRo128StarStar.
-
XO_RO_SHI_RO_128_PLUS
public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_128_PLUS
Source of randomness isXoRoShiRo128Plus.
-
XO_RO_SHI_RO_128_SS
public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_128_SS
Source of randomness isXoRoShiRo128StarStar.
-
XO_SHI_RO_256_PLUS
public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_256_PLUS
Source of randomness isXoShiRo256Plus.
-
XO_SHI_RO_256_SS
public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_256_SS
Source of randomness isXoShiRo256StarStar.
-
XO_SHI_RO_512_PLUS
public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_512_PLUS
Source of randomness isXoShiRo512Plus.
-
XO_SHI_RO_512_SS
public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_512_SS
Source of randomness isXoShiRo512StarStar.
-
-
Method Detail
-
values
public static ProviderBuilder.RandomSourceInternal[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProviderBuilder.RandomSourceInternal valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getRng
public java.lang.Class<?> getRng()
- Returns:
- the source type.
-
isNativeSeed
public <SEED> boolean isNativeSeed(SEED seed)
Checks whether the type of givenseedis the native type of the implementation.- Type Parameters:
SEED- Seed type.- Parameters:
seed- Seed value.- Returns:
trueif the seed can be passed to the builder for this RNG type.
-
-