RandomLongSource
, JumpableUniformRandomProvider
, RestorableUniformRandomProvider
, UniformRandomProvider
public class XorShift1024StarPhi extends XorShift1024Star
XorShift1024*
algorithm.
Note: This supersedes XorShift1024Star
. The sequences emitted by both
generators are correlated.
This generator differs only in the final multiplier (a fixed-point representation of the golden ratio), which eliminates linear dependencies from one of the lowest bits.
Modifier | Constructor | Description |
---|---|---|
|
XorShift1024StarPhi(long[] seed) |
Creates a new instance.
|
protected |
XorShift1024StarPhi(XorShift1024StarPhi source) |
Creates a copy instance.
|
Modifier and Type | Method | Description |
---|---|---|
protected XorShift1024StarPhi |
copy() |
Create a copy.
|
checkIndex, checkStateSize, composeStateInternal, fillState, fillState, nextInt, nextLong, restoreState, saveState, splitStateInternal, toString
nextBoolean, nextBytes, nextBytes, nextDouble, nextFloat, nextInt, nextLong, resetCachedState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
nextBoolean, nextBytes, nextBytes, nextDouble, nextFloat, nextInt, nextInt, nextLong, nextLong
getStateInternal, jump, next, setStateInternal
public XorShift1024StarPhi(long[] seed)
seed
- Initial seed.
If the length is larger than 16, only the first 16 elements will
be used; if smaller, the remaining elements will be automatically
set. A seed containing all zeros will create a non-functional generator.protected XorShift1024StarPhi(XorShift1024StarPhi source)
source
- Source to copy.protected XorShift1024StarPhi copy()
copy
in class XorShift1024Star
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.