public class MersenneTwisterParamSearcher extends Object
Modifier and Type | Field and Description |
---|---|
static MersenneExponent |
DEFAULT_MERSENNE_EXPONENT |
Constructor and Description |
---|
MersenneTwisterParamSearcher(RandomLongGenerator rng)
Constructs a new instance which uses the given RNG to do the parameter search.
|
MersenneTwisterParamSearcher(RandomLongGenerator rng,
MersenneExponent p)
Constructs a new instance which uses the given RNG to do the parameter search, with the given
period parameter.
|
Modifier and Type | Method and Description |
---|---|
MersenneTwisterParam |
search()
Performs a search for parameters with no id.
|
MersenneTwisterParam |
search(int id)
Performs a search for parameters for a given id.
|
public static final MersenneExponent DEFAULT_MERSENNE_EXPONENT
public MersenneTwisterParamSearcher(RandomLongGenerator rng)
DEFAULT_MERSENNE_EXPONENT
is used.rng
- the random number generator to use for the searchpublic MersenneTwisterParamSearcher(RandomLongGenerator rng, MersenneExponent p)
rng
- the random number generator to use for the searchp
- the period parameterpublic MersenneTwisterParam search(int id) throws DynamicCreatorException
id
- the idDynamicCreatorException
- if the search failedpublic MersenneTwisterParam search() throws DynamicCreatorException
DynamicCreatorException
- if the search for parameters has failedCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.