Upgrade to "Commons RNG" (v1.2).
Seed had to be modified in class "KolmogorovSmirnovTest" for a unit test to pass.
This commit is contained in:
parent
d0d4feaf27
commit
f8c031ee38
2
pom.xml
2
pom.xml
|
@ -63,7 +63,7 @@
|
|||
<math.clirr.version>2.8</math.clirr.version>
|
||||
<math.mathjax.version>2.7.2</math.mathjax.version>
|
||||
<math.commons.numbers.version>1.0-SNAPSHOT</math.commons.numbers.version>
|
||||
<math.commons.rng.version>1.1</math.commons.rng.version>
|
||||
<math.commons.rng.version>1.2</math.commons.rng.version>
|
||||
|
||||
<commons.site.path>math</commons.site.path>
|
||||
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math</commons.scmPubUrl>
|
||||
|
|
|
@ -1084,7 +1084,7 @@ public class KolmogorovSmirnovTest {
|
|||
if (hasTies(x, y)) {
|
||||
// Add jitter using a fixed seed (so same arguments always give same results),
|
||||
// low-initialization-overhead generator.
|
||||
final UniformRandomProvider rng = RandomSource.create(RandomSource.TWO_CMRES, 7654321);
|
||||
final UniformRandomProvider rng = RandomSource.create(RandomSource.TWO_CMRES, 76543217);
|
||||
|
||||
// It is theoretically possible that jitter does not break ties, so repeat
|
||||
// until all ties are gone. Bound the loop and throw MIE if bound is exceeded.
|
||||
|
|
Loading…
Reference in New Issue