/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | AbstractRandomGenerator.java | 137 return (int) (nextDouble() * Integer.MAX_VALUE); in nextInt() 160 int result = (int) (nextDouble() * n); in nextInt() 179 return (long) (nextDouble() * Long.MAX_VALUE); in nextLong() 197 return nextDouble() <= 0.5; in nextBoolean() 215 return (float) nextDouble(); in nextFloat() 230 public abstract double nextDouble(); in nextDouble() method in AbstractRandomGenerator 262 v1 = 2 * nextDouble() - 1; in nextGaussian() 263 v2 = 2 * nextDouble() - 1; in nextGaussian()
|
D | RandomDataImpl.java | 204 double r = getRan().nextDouble(); in nextInt() 224 double r = getRan().nextDouble(); in nextLong() 316 return lower + (int) (sec.nextDouble() * (upper - lower + 1)); in nextSecureInt() 337 return lower + (long) (sec.nextDouble() * (upper - lower + 1)); in nextSecureLong() 372 rnd = generator.nextDouble(); in nextPoisson() 487 double unif = generator.nextDouble(); 489 unif = generator.nextDouble(); 519 double u = generator.nextDouble(); 521 u = generator.nextDouble();
|
D | BitsStreamGenerator.java | 84 public double nextDouble() { in nextDouble() method in BitsStreamGenerator 101 final double x = nextDouble(); in nextGaussian() 102 final double y = nextDouble(); in nextGaussian()
|
D | RandomAdaptor.java | 99 public double nextDouble() { in nextDouble() method in RandomAdaptor 100 return randomGenerator.nextDouble(); in nextDouble()
|
D | RandomGenerator.java | 135 double nextDouble(); in nextDouble() method
|
D | UniformRandomGenerator.java | 58 return SQRT3 * (2 * generator.nextDouble() - 1.0); in nextNormalizedDouble()
|
D | UnitSphereRandomVectorGenerator.java | 69 final double comp = 2 * rand.nextDouble() - 1; in nextVector()
|
/external/crcalc/tests/src/com/hp/creals/ |
D | SlowCRTest.java | 185 double d = Math.exp(2.0 * r.nextDouble() - 1.0); in testSlowTrig() 192 double d = Math.exp(200.0 * r.nextDouble()); in testSlowTrig() 213 double d = Math.exp(10.0 * r.nextDouble() - 1.0); in testSlowExpLn() 220 double d = Math.exp(200.0 * r.nextDouble()); in testSlowExpLn() 232 double d = Math.exp(10.0 * r.nextDouble() - 1.0); in testSlowBasic() 239 double d = Math.exp(600.0 * r.nextDouble()); in testSlowBasic()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/ |
D | GeneticAlgorithm.java | 152 if (randGen.nextDouble() < getCrossoverRate()) { in nextGeneration() 158 if (randGen.nextDouble() < getMutationRate()) { in nextGeneration()
|
D | RandomKeyMutation.java | 52 newRepr.set(rInd, GeneticAlgorithm.getRandomGenerator().nextDouble()); in mutate()
|
D | RandomKey.java | 195 repr.add(GeneticAlgorithm.getRandomGenerator().nextDouble()); in randomPermutation()
|
/external/walt/android/WALT/app/src/test/java/org/chromium/latency/walt/ |
D | UtilsTest.java | 145 touchTimes[i] = i + rand.nextDouble()*0.2 - 0.1; in testFindBestShift() 150 …touchY[i] = 1000*Math.cos((touchTimes[i] - latency) * Math.PI/500) + rand.nextDouble()*0.02 - 0.01; in testFindBestShift()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/ |
D | MultiStartUnivariateRealOptimizer.java | 242 final double bound1 = (i == 0) ? min : min + generator.nextDouble() * (max - min); in optimize() 243 final double bound2 = (i == 0) ? max : min + generator.nextDouble() * (max - min); in optimize()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateFormatRoundTripTest.java | 109 int random = (int) (ran.nextDouble() * 24); in _test() 272 double a = ran.nextDouble();
|
D | IntlTestDateFormat.java | 232 return random.nextDouble(); in randDouble()
|
D | NumberFormatRoundTripTest.java | 91 return random.nextDouble() * range; in randomDouble()
|
D | IntlTestNumberFormat.java | 150 double d = random.nextDouble()*2e10 - 1e10; in _testFormat()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | MathBenchmarking.java | 110 double result = RANDOM_SOURCE.nextDouble(); in randomDouble()
|
/external/guava/guava/src/com/google/common/hash/ |
D | Hashing.java | 344 next = (int) ((candidate + 1) / generator.nextDouble()); in consistentHash() 480 public double nextDouble() { in nextDouble() method in Hashing.LinearCongruentialGenerator
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateFormatRoundTripTest.java | 108 int random = (int) (ran.nextDouble() * 24); in _test() 271 double a = ran.nextDouble();
|
D | NumberFormatRoundTripTest.java | 90 return random.nextDouble() * range; in randomDouble()
|
D | IntlTestDateFormat.java | 231 return random.nextDouble(); in randDouble()
|
D | IntlTestNumberFormat.java | 149 double d = random.nextDouble()*2e10 - 1e10; in _testFormat()
|
/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | StatsBenchmark.java | 160 values[i][j] = rng.nextDouble(); in setUp()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/ |
D | KMeansPlusPlusClusterer.java | 186 final double r = random.nextDouble() * sum; in chooseInitialCenters()
|