/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()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/ |
D | JsonUtils.java | 23 int r = (int) (reader.nextDouble() * 255); in jsonToColor() 24 int g = (int) (reader.nextDouble() * 255); in jsonToColor() 25 int b = (int) (reader.nextDouble() * 255); in jsonToColor() 56 float x = (float) reader.nextDouble(); in jsonNumbersToPoint() 57 float y = (float) reader.nextDouble(); in jsonNumbersToPoint() 68 x = (float) reader.nextDouble(); in jsonArrayToPoint() 69 y = (float) reader.nextDouble(); in jsonArrayToPoint() 104 return (float) reader.nextDouble(); in valueFromObject() 107 float val = (float) reader.nextDouble(); in valueFromObject()
|
D | ColorParser.java | 20 double r = reader.nextDouble(); in parse() 21 double g = reader.nextDouble(); in parse() 22 double b = reader.nextDouble(); in parse() 23 double a = reader.nextDouble(); in parse()
|
D | DocumentDataParser.java | 53 size = (float) reader.nextDouble(); in parse() 67 lineHeight = (float) reader.nextDouble(); in parse() 70 baselineShift = (float) reader.nextDouble(); in parse() 79 strokeWidth = (float) reader.nextDouble(); in parse()
|
D | ScaleXYParser.java | 21 float sx = (float) reader.nextDouble(); in parse() 22 float sy = (float) reader.nextDouble(); in parse()
|
D | LottieCompositionMoshiParser.java | 67 startFrame = (float) reader.nextDouble(); in parse() 70 endFrame = (float) reader.nextDouble() - 0.01f; in parse() 73 frameRate = (float) reader.nextDouble(); in parse() 257 frame = (float) reader.nextDouble(); in parseMarkers() 260 durationFrames = (float) reader.nextDouble(); in parseMarkers()
|
D | PointFParser.java | 26 …PointF point = new PointF((float) reader.nextDouble() * scale, (float) reader.nextDouble() * scale… in parse()
|
D | LottieCompositionParser.java | 65 startFrame = (float) reader.nextDouble(); in parse() 68 endFrame = (float) reader.nextDouble() - 0.01f; in parse() 71 frameRate = (float) reader.nextDouble(); in parse()
|
D | LayerParser.java | 204 timeStretch = (float) reader.nextDouble(); in parse() 207 startFrame = (float) reader.nextDouble(); in parse() 216 inFrame = (float) reader.nextDouble(); in parse() 219 outFrame = (float) reader.nextDouble(); in parse()
|
D | FontCharacterParser.java | 42 size = reader.nextDouble(); in parse() 45 width = reader.nextDouble(); in parse()
|
/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | GeometryTestCase.java | 50 2 * rand.nextDouble() - 1, 51 2 * rand.nextDouble() - 1, 52 2 * rand.nextDouble() - 1)); 136 * Math.pow(minArea / maxArea, rand.nextDouble()); 155 double h = rand.nextDouble() * cap.height(); 156 double theta = 2 * S2.M_PI * rand.nextDouble();
|
D | S2EdgeUtilTest.java | 505 double slope = Math.pow(1e-15, rand.nextDouble()); in testIntersectionTolerance() 508 S2Point.add(p, S2Point.mul(d1, Math.pow(1e-15 / slope, rand.nextDouble())))); in testIntersectionTolerance() 510 S2Point.sub(p, S2Point.mul(d1, Math.pow(1e-15 / slope, rand.nextDouble())))); in testIntersectionTolerance() 512 S2Point.add(p, S2Point.mul(d2, Math.pow(1e-15 / slope, rand.nextDouble())))); in testIntersectionTolerance() 514 S2Point.sub(p, S2Point.mul(d2, Math.pow(1e-15 / slope, rand.nextDouble())))); in testIntersectionTolerance()
|
/external/kotlinx.coroutines/js/example-frontend-js/src/ |
D | ExampleMain.kt | 129 if (Random.nextDouble() > 0.5) { in onRect() 154 val initialAngle = Random.nextDouble() * 2 * PI in onCircle() 157 var x = (Random.nextDouble() * initialRange + (1 - initialRange) / 2) * sw in onCircle() 158 var y = (Random.nextDouble() * initialRange + (1 - initialRange) / 2) * sh in onCircle()
|
/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()
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | MultipleSetContainsBenchmark.java | 53 double setSize = rng.nextDouble(); in setUp() 62 if (rng.nextDouble() < hitRate) { in setUp()
|
/external/guava/android/guava-tests/benchmark/com/google/common/collect/ |
D | MultipleSetContainsBenchmark.java | 53 double setSize = rng.nextDouble(); in setUp() 62 if (rng.nextDouble() < hitRate) { in setUp()
|
/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() 239 items[weightedIndex.toIndex(target.nextDouble())].addTo(target); in addTo() 300 for (int i = weightedIndex.toIndex(target.nextDouble()); i > 0; --i) { in addTo() 403 int c = choice.toIndex(target.nextDouble()); in addTo() 761 return start + (int) (random.nextDouble() * (end + 1 - start)); in pick() 765 return start + (random.nextDouble() * (end + 1 - start)); in pick() 769 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()
|
/external/kotlinx.coroutines/ui/kotlinx-coroutines-javafx/test/examples/ |
D | FxExampleApp.kt | 110 var sx = random.nextDouble() * maxSpeed in log() 111 var sy = random.nextDouble() * maxSpeed in log()
|
/external/kotlinx.coroutines/benchmarks/src/main/kotlin/benchmarks/common/ |
D | BenchmarkUtils.kt | 15 if (r.nextDouble() < p) break in doGeomDistrWork()
|