HomeSort by relevance Sort by last modified time
    Searched defs:random (Results 1 - 25 of 666) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/slf4j/slf4j-api/src/test/java/org/slf4j/
Differentiator.java 28 import java.util.Random;
32 static Random random = new Random(System.currentTimeMillis()); field in class:Differentiator
35 return (short) random.nextInt(Short.MAX_VALUE);
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/
mis.py 19 import random namespace
23 """Return a random maximal independent set guaranteed to contain
64 nodes = set([random.choice(G.nodes())])
77 node = random.choice(list(available_nodes))
swap.py 11 import random namespace
65 # Instead of choosing uniformly at random from a generated edge list,
73 # if random.random() < 0.5: continue # trick to avoid periodicities?
74 # pick two random edges without creating edge list
82 v=random.choice(list(G[u]))
83 y=random.choice(list(G[x]))
134 power law random graphs, 2003.
152 # Pick two random edges without creating edge list
160 v=random.choice(G.neighbors(u)
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/networkx/generators/
random_clustered.py 10 import random namespace
19 """Generate a random graph with the given joint degree and triangle
23 random pseudograph (graph with parallel edges and self loops) by
35 The seed for the random number generator.
69 .. [1] J. C. Miller "Percolation and Epidemics on Random Clustered Graphs."
71 .. [2] M.E.J. Newman, "Random clustered networks".
94 random.seed(seed)
114 random.shuffle(ilist)
115 random.shuffle(tlist)
intersection.py 3 Generators for random intersection graphs.
11 import random namespace
21 """Return a uniform random intersection graph.
32 Seed for random number generator (default=None).
40 .. [1] K.B. Singer-Cohen, Random Intersection Graphs, 1995,
43 Random intersection graphs when m = !(n):
45 and g(n, p) models. Random Struct. Algorithms 16, 2 (2000), 156?176.
63 Seed for random number generator (default=None).
72 Two models of random intersection graphs and their applications.
78 targets = random.sample(mset, k
    [all...]
directed.py 20 import random namespace
46 The seed for the random number generator.
60 Organization of Growing Random Networks,
72 random.seed(seed)
99 target node is chosen uniformly at random. With probabiliy p the link is
112 The seed for the random number generator.
122 Organization of Growing Random Networks,
131 random.seed(seed)
140 target=random.randrange(0,source)
141 if random.random() < p and target !=0
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
NormalizedRandomGenerator.java 18 package org.apache.commons.math.random;
21 * This interface represent a normalized random generator for
29 /** Generate a random scalar with null mean and unit standard deviation.
34 * @return a random scalar with null mean and unit standard deviation
RandomVectorGenerator.java 18 package org.apache.commons.math.random;
21 /** This interface represents a random generator for whole vectors.
30 /** Generate a random vector.
31 * @return a random vector as an array of double.
UncorrelatedRandomVectorGenerator.java 18 package org.apache.commons.math.random;
46 * <p>Build an uncorrelated random vector generator from
65 * <p>Build a null mean random and unit standard deviation
79 /** Generate an uncorrelated random vector.
80 * @return a random vector as a newly built array of double
84 double[] random = new double[mean.length]; local
85 for (int i = 0; i < random.length; ++i) {
86 random[i] = mean[i] + standardDeviation[i] * generator.nextNormalizedDouble();
89 return random;
GaussianRandomGenerator.java 18 package org.apache.commons.math.random;
21 * This class is a gaussian normalized random generator for scalars.
34 * @param generator underlying random generator to use
40 /** Generate a random scalar with null mean and unit standard deviation.
41 * @return a random scalar with null mean and unit standard deviation
JDKRandomGenerator.java 17 package org.apache.commons.math.random;
19 import java.util.Random;
22 * Extension of <code>java.util.Random</code> to implement
28 public class JDKRandomGenerator extends Random implements RandomGenerator {
UniformRandomGenerator.java 18 package org.apache.commons.math.random;
23 * This class implements a normalized uniform random generator.
24 * <p>Since it is a normalized random generator, it generates values
46 * @param generator underlying random generator to use
52 /** Generate a random scalar with null mean and unit standard deviation.
55 * @return a random scalar with null mean and unit standard deviation
BitsStreamGenerator.java 17 package org.apache.commons.math.random;
22 /** Base class for random number generators that generates bits streams.
33 /** Creates a new random number generator.
54 * @param bits number of random bits to produce
55 * @return random bits generated
69 final int random = next(32); local
70 bytes[i] = (byte) (random & 0xff);
71 bytes[i + 1] = (byte) ((random >> 8) & 0xff);
72 bytes[i + 2] = (byte) ((random >> 16) & 0xff);
73 bytes[i + 3] = (byte) ((random >> 24) & 0xff)
76 int random = next(32); local
98 final double random; local
138 final int random = next(32) & mask; local
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
CipherKeyGenerator.java 10 protected SecureRandom random; field in class:CipherKeyGenerator
21 this.random = param.getRandom();
34 random.nextBytes(key);
KeyGenerationParameters.java 10 private SecureRandom random; field in class:KeyGenerationParameters
17 * @param random the random byte source.
21 SecureRandom random,
24 this.random = random;
29 * return the random source associated with this
32 * @return the generators random source.
36 return random;
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
ParametersWithRandom.java 10 private SecureRandom random; field in class:ParametersWithRandom
15 SecureRandom random)
17 this.random = random;
29 return random;
  /external/guava/guava-tests/test/com/google/common/io/
RandomAmountInputStream.java 24 import java.util.Random;
26 /** Returns a random portion of the requested bytes on each call. */
28 private final Random random; field in class:RandomAmountInputStream
30 public RandomAmountInputStream(InputStream in, Random random) {
32 this.random = checkNotNull(random);
36 return super.read(b, off, random.nextInt(len) + 1);
  /external/lldb/test/example/
TestSequenceFunctions.py 3 import random namespace
19 random.shuffle(self.seq)
24 element = random.choice(self.seq)
28 self.assertRaises(ValueError, random.sample, self.seq, 20)
29 for element in random.sample(self.seq, 5):
  /external/llvm/utils/
shuffle_fuzz.py 6 generates a function with a random sequnece of shufflevectors, maintaining the
18 import random namespace
41 random.seed(args.seed)
49 (width, element_type) = random.choice(
53 (width, element_type) = random.choice(
58 width = random.choice([2, 4, 8, 16, 32, 64])
59 element_type = random.choice(element_types)
104 shuffle_tree = [[[-1 if random.random() <= undef_prob
105 else random.choice(range(shuffle_range)
    [all...]
  /external/skia/src/animator/
SkDisplayRandom.cpp 14 SK_PROPERTY(random),
24 SK_MEMBER_DYNAMIC_PROPERTY(random, Float),
47 case SK_PROPERTY(random): {
48 SkScalar random = fRandom.nextUScalar1(); local
49 SkScalar relativeT = SkUnitCubicInterp(random, SK_Scalar1 - blend, 0, 0, SK_Scalar1 - blend);
  /frameworks/volley/src/test/java/com/android/volley/utils/
CacheTestUtils.java 7 import java.util.Random;
12 * Makes a random cache entry.
13 * @param data Data to use, or null to use random data
19 Random random = new Random(); local
24 entry.data = new byte[random.nextInt(1024)];
26 entry.etag = String.valueOf(random.nextLong());
27 entry.lastModified = random.nextLong();
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/tests/
test_mis.py 20 import random namespace
80 """Generate 50 random graphs of different types and sizes and
83 G = nx.random_graphs.erdos_renyi_graph(i*10+1, random.random())
  /libcore/benchmarks/src/benchmarks/regression/
CollectionsBenchmark.java 25 import java.util.Random;
72 Random random = new Random(); local
73 random.setSeed(0);
76 list.add(random.nextInt());
  /bionic/libc/include/android/
legacy_stdlib_inlines.h 54 static __inline long random(void) { return lrand48(); } function
  /cts/apps/CtsVerifier/assets/scripts/power_monitors/
_dummy.py 77 import random namespace
81 values = [ random.gauss(base[(self._sequence-1)%4], 0.0005) for _ in range(100)]

Completed in 389 milliseconds

1 2 3 4 5 6 7 8 91011>>