/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() 235 double d = Math.exp(10.0 * r.nextDouble() - 1.0); in testSlowBasic() 242 double d = Math.exp(600.0 * r.nextDouble()); in testSlowBasic()
|
D | ConversionTest.java | 80 double d = Math.exp(1000.0 * r.nextDouble()); in testConversions()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Pick.java | 68 private double nextDouble() { in nextDouble() method in Pick.Target 69 return random.nextDouble(); in nextDouble() 235 items[weightedIndex.toIndex(target.nextDouble())].addTo(target); in addTo() 293 for (int i = weightedIndex.toIndex(target.nextDouble()); i > 0; --i) { in addTo() 390 int c = choice.toIndex(target.nextDouble()); in addTo() 733 return start + (int) (random.nextDouble() * (end + 1 - start)); in pick() 737 return start + (random.nextDouble() * (end + 1 - start)); in pick() 741 return random.nextDouble() <= percent; in pick()
|
/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()
|
/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/cldr/tools/java/org/unicode/cldr/draft/ |
D | GapStringTest.java | 93 randomStarts[i] = random.nextDouble(); in checkTime() 94 randomInserts[i] = random.nextDouble(); in checkTime()
|
/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/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | ExponentialBackoffPolicyTest.java | 35 public double nextDouble() {
|
/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 | 112 int random = (int) (ran.nextDouble() * 24); in _test() 275 double a = ran.nextDouble();
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateFormatRoundTripTest.java | 115 int random = (int) (ran.nextDouble() * 24); in _test() 278 double a = ran.nextDouble();
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | MathBenchmarking.java | 110 double result = RANDOM_SOURCE.nextDouble(); in randomDouble()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | ExponentialBackoffPolicy.java | 58 return (long) (random.nextDouble() * mag + low); in uniformRandom()
|
D | JsonParser.java | 70 return jr.nextDouble(); in parseRecursive()
|
/external/kotlinc/lib/ |
D | kotlin-stdlib-jdk8.jar | META-INF/
META-INF/MANIFEST.MF
kotlin/
kotlin/random/
kotlin/ ... |
/external/skia/tools/bookmaker/ |
D | definition.cpp | 325 size_t nextDouble = methodName.find("::"); in setCanonicalFiddle() local 326 if (string::npos == nextDouble) { in setCanonicalFiddle() 329 base = methodName.substr(0, nextDouble); in setCanonicalFiddle() 331 methodName = methodName.substr(nextDouble + 2); in setCanonicalFiddle() 332 doubleColons += nextDouble + 2; in setCanonicalFiddle()
|
/external/skqp/tools/bookmaker/ |
D | definition.cpp | 325 size_t nextDouble = methodName.find("::"); in setCanonicalFiddle() local 326 if (string::npos == nextDouble) { in setCanonicalFiddle() 329 base = methodName.substr(0, nextDouble); in setCanonicalFiddle() 331 methodName = methodName.substr(nextDouble + 2); in setCanonicalFiddle() 332 doubleColons += nextDouble + 2; in setCanonicalFiddle()
|