HomeSort by relevance Sort by last modified time
    Searched refs:random (Results 451 - 475 of 3992) sorted by null

<<11121314151617181920>>

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DHKeyGenerationParameters.java 13 SecureRandom random,
16 super(random, getStrength(params));
  /external/deqp/framework/randomshaders/
rsgGeneratorState.cpp 2 * drawElements Quality Program Random Shader Generator
31 GeneratorState::GeneratorState (const ProgramParameters& programParams, de::Random& random)
33 , m_random (random)
  /external/eigen/test/
special_numbers.cpp 15 int rows = internal::random<int>(1,300);
16 int cols = internal::random<int>(1,300);
20 Scalar s1 = internal::random<Scalar>();
22 MatType m1 = MatType::Random(rows,cols),
23 mnan = MatType::Random(rows,cols),
24 minf = MatType::Random(rows,cols),
25 mboth = MatType::Random(rows,cols);
27 int n = internal::random<int>(1,10);
30 mnan(internal::random<int>(0,rows-1), internal::random<int>(0,cols-1)) = nan
    [all...]
product_large.cpp 15 int rows = internal::random<int>(1,12);
16 int cols = internal::random<int>(1,12);
36 CALL_SUBTEST_1( product(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
37 CALL_SUBTEST_2( product(MatrixXd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
38 CALL_SUBTEST_3( product(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
39 CALL_SUBTEST_4( product(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2), internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2))) )
    [all...]
svd_fill.h 29 s = internal::random<RealScalar>(1,s);
30 Matrix<RealScalar,Dynamic,1> d = Matrix<RealScalar,Dynamic,1>::Random(diagSize);
32 d(k) = d(k)*pow(RealScalar(10),internal::random<RealScalar>(-s,s));
34 bool dup = internal::random<int>(0,10) < 3;
35 bool unit_uv = internal::random<int>(0,10) < (dup?7:3); // if we duplicate some diagonal entries, then increase the chance to preserve them using unitary U and V factors
40 Index n = internal::random<Index>(0,d.size()-1);
42 d(internal::random<Index>(0,d.size()-1)) = d(internal::random<Index>(0,d.size()-1));
50 if(internal::random<int>(0,10) < 1)
77 Index count = internal::random<Index>(-diagSize,diagSize)
    [all...]
  /external/python/cpython2/Demo/tkinter/guido/
brownian.py 4 import random
21 x = random.gauss(WIDTH/2.0, SIGMA)
22 y = random.gauss(HEIGHT/2.0, SIGMA)
25 dx = random.gauss(0, BUZZ)
26 dy = random.gauss(0, BUZZ)
27 dt = random.expovariate(LAMBDA)
brownian2.py 5 import random
21 x = random.gauss(WIDTH/2.0, SIGMA)
22 y = random.gauss(HEIGHT/2.0, SIGMA)
25 dx = random.gauss(0, BUZZ)
26 dy = random.gauss(0, BUZZ)
34 def move(particle): # move the particle at random time
36 dt = random.expovariate(LAMBDA)
  /external/smali/smalidea/src/test/java/org/jf/smalidea/
SmaliLexerTest.java 37 import java.util.Random;
165 * Generate some random text and make sure the lexer doesn't throw any exceptions
175 private Random random = new Random(123456789); field in class:SmaliLexerTest
179 int type = random.nextInt(10);
184 randomCodepoint = random.nextInt();
190 randomChar = (char)random.nextInt(2^16);
194 sb.append((char)random.nextInt(256));
198 sb.append((char)random.nextInt(128))
    [all...]
  /external/tensorflow/tensorflow/contrib/specs/python/
params_ops.py 25 The random parameter primitives are useful for running large numbers
37 creation allows us to log the random parameter values easily.
42 used to generate a random number by the framework.
56 import random
63 return random.uniform(lo, hi)
68 return random.randint(lo, hi)
73 return math.exp(random.uniform(math.log(lo), math.log(hi)))
78 return int(math.floor(math.exp(random.uniform(math.log(lo),
84 return min(max(random.gauss(mu, sigma), mu-limit*sigma), mu+limit*sigma)
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GlyphCacheActivity.java 56 textview.setTextSize(6 + (int) (Math.random() * 5) * 10);
57 textview.setTextColor(0xff << 24 | (int) (Math.random() * 255) << 16 |
58 (int) (Math.random() * 255) << 8 | (int) (Math.random() * 255) << 16);
61 int numChars = 5 + (int) (Math.random() * 10);
71 sb.append(mCharacterSet.charAt((int)(Math.random() * mCharacterSet.length())));
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyGeneratorSpiTest.java 48 protected void engineInit(SecureRandom random) {
49 super.engineInit(random);
53 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random)
55 super.engineInit(params, random);
59 protected void engineInit(int keysize, SecureRandom random) {
60 super.engineInit(keysize, random);
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyKeyPairGenerator1.java 62 public void initialize(int keysize, SecureRandom random) {
66 if (random == null) {
67 throw new InvalidParameterException("Incorrect random");
70 secureRandom = random;
82 public void initialize(AlgorithmParameterSpec param, SecureRandom random)
84 if (random == null) {
85 throw new InvalidParameterException("Incorrect random");
91 secureRandom = random;
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/
DSAKeyPairGeneratorImpl.java 46 public void initialize(DSAParams params, SecureRandom random)
48 if (random == null) {
49 throw new InvalidParameterException("Incorrect random");
54 secureRandom = random;
59 public void initialize(int modlen, boolean genParams, SecureRandom random)
76 if (random == null) {
77 throw new InvalidParameterException("Incorrect random");
82 secureRandom = random;
  /external/tensorflow/tensorflow/contrib/coder/kernels/
range_coder_test.cc 20 #include "tensorflow/core/lib/random/distribution_sampler.h"
21 #include "tensorflow/core/lib/random/philox_random.h"
22 #include "tensorflow/core/lib/random/random.h"
23 #include "tensorflow/core/lib/random/simple_philox.h"
28 void RangeEncodeDecodeTest(int precision, random::SimplePhilox* gen) {
37 random::DistributionSampler sampler(distribution_weight);
90 random::PhiloxRandom gen(random::New64(), random::New64())
    [all...]
  /frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
Utils.java 23 import java.util.Random;
29 public static String getRandomWord(Random random, int length) {
32 char base = random.nextBoolean() ? 'A' : 'a';
33 char nextChar = (char)(random.nextInt(26) + base);
40 Random random = new Random(0); local
43 result[i] = getRandomWord(random, RANDOM_WORD_LENGTH);
71 Random random = new Random(0) local
    [all...]
  /libcore/luni/src/test/java/tests/security/interfaces/
DSAKeyPairGeneratorTest.java 45 * #initialize(DSAParams params, SecureRandom random)
49 SecureRandom random = null; local
52 random = SecureRandom.getInstance("SHA1PRNG");
58 dsa.initialize(dsaParams, random);
72 dsa.initialize(null, random);
88 SecureRandom random = null; local
91 random = SecureRandom.getInstance("SHA1PRNG");
98 dsa.initialize(520, false, random);
112 dsa.initialize(invalidLen[i], true, random);
127 dsa.initialize(520, true, random);
    [all...]
  /external/tensorflow/tensorflow/contrib/sparsemax/python/kernel_tests/
sparsemax_test.py 79 def _test_sparsemax_against_numpy(self, dtype, random, use_gpu):
81 z = random.uniform(low=-3, high=3, size=(test_obs, 10))
90 def _test_sparsemax_of_zero(self, dtype, random, use_gpu):
100 def _test_sparsemax_of_inf(self, dtype, random, use_gpu):
102 z = random.uniform(low=-3, high=3, size=(test_obs, 10))
104 # assume |A(z)| = 1, as z is continues random
120 def _test_constant_add(self, dtype, random, use_gpu):
122 z = random.uniform(low=-3, high=3, size=(test_obs, 10)).astype(dtype)
123 c = random.uniform(low=-3, high=3, size=(test_obs, 1)).astype(dtype)
132 def _test_permutation(self, dtype, random, use_gpu)
    [all...]
  /external/tensorflow/tensorflow/contrib/framework/python/ops/
sort_ops_test.py 41 np.random.seed(42)
43 rank = np.random.randint(1, 3)
44 shape = [np.random.randint(0, 20) for _ in range(rank)]
45 arr = np.random.random(shape)
46 sort_axis = np.random.choice(rank)
55 np.random.seed(100)
57 rank = np.random.randint(5, 15)
58 shape = [np.random.randint(1, 4) for _ in range(rank)]
59 arr = np.random.random(shape
    [all...]
  /external/tensorflow/tensorflow/core/kernels/
range_sampler.h 23 #include "tensorflow/core/lib/random/distribution_sampler.h"
24 #include "tensorflow/core/lib/random/random_distributions.h"
25 #include "tensorflow/core/lib/random/weighted_picker.h"
43 virtual int64 Sample(random::SimplePhilox* rnd) const = 0;
52 void SampleBatch(random::SimplePhilox* rnd, bool unique,
75 random::SimplePhilox* rnd, bool unique,
86 random::SimplePhilox* rnd, bool unique,
116 int64 Sample(random::SimplePhilox* rnd) const override {
127 random::SimplePhilox* rnd, bool unique,
141 int64 Sample(random::SimplePhilox* rnd) const override
    [all...]
  /external/tensorflow/tensorflow/python/keras/_impl/keras/preprocessing/
image_test.py 40 bias = np.random.rand(img_w, img_h, 1) * 64
41 variance = np.random.rand(img_w, img_h, 1) * (255 - 64)
42 imarray = np.random.rand(img_w, img_h, 3) * variance + bias
46 imarray = np.random.rand(img_w, img_h, 1) * variance + bias
82 x = np.random.random((32, 10, 10, 3))
106 x = np.random.random((3, 10, 10))
112 x = np.random.random((32, 10, 10, 5)
    [all...]
  /external/tensorflow/tensorflow/python/keras/_impl/keras/engine/
topology_test.py 118 x = np.random.random((3, 2))
176 input_a_np = np.random.random((10, 32))
177 input_b_np = np.random.random((10, 32))
307 input_a_np = np.random.random((10, 32))
308 input_b_np = np.random.random((10, 32)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyPairGeneratorSpi.java 31 SecureRandom random = new SecureRandom(); field in class:KeyPairGeneratorSpi
41 SecureRandom random)
44 this.random = random;
50 SecureRandom random)
59 param = new DHKeyGenerationParameters(random, new DHParameters(dhParams.getP(), dhParams.getG(), null, dhParams.getL()));
81 param = new DHKeyGenerationParameters(random, new DHParameters(dhParams.getP(), dhParams.getG(), null, dhParams.getL()));
98 pGen.init(strength, PrimeCertaintyCalculator.getDefaultCertainty(strength), random);
100 param = new DHKeyGenerationParameters(random, pGen.generateParameters());
  /external/skia/bench/
BlendmodeBench.cpp 30 SkRandom random; variable
34 paint.setColor(random.nextU());
38 paint.setTextSize(random.nextRangeScalar(12, 96));
39 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth),
40 y = random.nextRangeScalar(0, (SkScalar)size.fHeight);
46 SkScalar w = random.nextRangeScalar(50, 100);
47 SkScalar h = random.nextRangeScalar(50, 100);
49 random.nextUScalar1() * (size.fWidth - w),
50 random.nextUScalar1() * (size.fHeight - h),
  /external/skqp/bench/
BlendmodeBench.cpp 30 SkRandom random; variable
34 paint.setColor(random.nextU());
38 paint.setTextSize(random.nextRangeScalar(12, 96));
39 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth),
40 y = random.nextRangeScalar(0, (SkScalar)size.fHeight);
46 SkScalar w = random.nextRangeScalar(50, 100);
47 SkScalar h = random.nextRangeScalar(50, 100);
49 random.nextUScalar1() * (size.fWidth - w),
50 random.nextUScalar1() * (size.fHeight - h),
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
SendToClientBlockingTest.java 22 import java.util.Random;
28 private Random random; field in class:SendToClientBlockingTest
36 random = new Random();
65 int id = random.nextInt(10);
83 int id = random.nextInt(10);
84 int data = random.nextInt();

Completed in 1720 milliseconds

<<11121314151617181920>>