Home
last modified time | relevance | path

Searched refs:nextDouble (Results 1 – 25 of 99) sorted by relevance

1234

/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DAbstractRandomGenerator.java137 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()
DRandomDataImpl.java204 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();
DBitsStreamGenerator.java84 public double nextDouble() { in nextDouble() method in BitsStreamGenerator
101 final double x = nextDouble(); in nextGaussian()
102 final double y = nextDouble(); in nextGaussian()
DRandomAdaptor.java99 public double nextDouble() { in nextDouble() method in RandomAdaptor
100 return randomGenerator.nextDouble(); in nextDouble()
DRandomGenerator.java135 double nextDouble(); in nextDouble() method
DUniformRandomGenerator.java58 return SQRT3 * (2 * generator.nextDouble() - 1.0); in nextNormalizedDouble()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DJsonUtils.java23 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()
DColorParser.java20 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()
DDocumentDataParser.java53 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()
DScaleXYParser.java21 float sx = (float) reader.nextDouble(); in parse()
22 float sy = (float) reader.nextDouble(); in parse()
DLottieCompositionMoshiParser.java67 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()
DPointFParser.java26 …PointF point = new PointF((float) reader.nextDouble() * scale, (float) reader.nextDouble() * scale… in parse()
DLottieCompositionParser.java65 startFrame = (float) reader.nextDouble(); in parse()
68 endFrame = (float) reader.nextDouble() - 0.01f; in parse()
71 frameRate = (float) reader.nextDouble(); in parse()
DLayerParser.java204 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()
DFontCharacterParser.java42 size = reader.nextDouble(); in parse()
45 width = reader.nextDouble(); in parse()
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DGeometryTestCase.java50 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();
DS2EdgeUtilTest.java505 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/
DExampleMain.kt129 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/
DSlowCRTest.java185 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/
DMultipleSetContainsBenchmark.java53 double setSize = rng.nextDouble(); in setUp()
62 if (rng.nextDouble() < hitRate) { in setUp()
/external/guava/android/guava-tests/benchmark/com/google/common/collect/
DMultipleSetContainsBenchmark.java53 double setSize = rng.nextDouble(); in setUp()
62 if (rng.nextDouble() < hitRate) { in setUp()
/external/cldr/tools/java/org/unicode/cldr/util/
DPick.java68 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/
DGeneticAlgorithm.java152 if (randGen.nextDouble() < getCrossoverRate()) { in nextGeneration()
158 if (randGen.nextDouble() < getMutationRate()) { in nextGeneration()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-javafx/test/examples/
DFxExampleApp.kt110 var sx = random.nextDouble() * maxSpeed in log()
111 var sy = random.nextDouble() * maxSpeed in log()
/external/kotlinx.coroutines/benchmarks/src/main/kotlin/benchmarks/common/
DBenchmarkUtils.kt15 if (r.nextDouble() < p) break in doGeomDistrWork()

1234