Home
last modified time | relevance | path

Searched refs:population (Results 1 – 25 of 57) sorted by relevance

123

/external/icu/icu4j/samples/src/com/ibm/icu/samples/iuc/
DPopulationData.java30 private double population; field in PopulationData.TerritoryEntry
31 public TerritoryEntry(String displayCountry, double population) { in TerritoryEntry() argument
33 this.population = population; in TerritoryEntry()
38 public double population() { in population() method in PopulationData.TerritoryEntry
39 return population; in population()
47 if (rc==0) rc = ((Double)population).compareTo(o.population()); in compareTo()
76 System.out.println(" "+ te.territoryName() + " = " + nf.format(te.population())); in main()
DSample40_PopMsg.java60 infoArgs.put("population", entry.population()); in main()
DSample50_PopSort.java72 infoArgs.put("population", entry.population()); in main()
/external/brotli/c/enc/
Dbit_cost.h21 static BROTLI_INLINE double ShannonEntropy(const uint32_t *population, in ShannonEntropy() argument
25 const uint32_t *population_end = population + size; in ShannonEntropy()
30 while (population < population_end) { in ShannonEntropy()
31 p = *population++; in ShannonEntropy()
35 p = *population++; in ShannonEntropy()
45 const uint32_t *population, size_t size) { in BitsEntropy() argument
47 double retval = ShannonEntropy(population, size, &sum); in BitsEntropy()
/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
DTournamentSelection.java56 public ChromosomePair select(Population population) { in select() argument
58 tournament((ListPopulation) population), in select()
59 tournament((ListPopulation)population) in select()
72 private Chromosome tournament(ListPopulation population) { in tournament() argument
73 if (population.getPopulationSize() < this.arity) in tournament()
84 List<Chromosome> chromosomes = new ArrayList<Chromosome> (population.getChromosomes()); in tournament()
DChromosome.java89 protected Chromosome findSameChromosome(Population population) { in findSameChromosome() argument
90 for (Chromosome anotherChr : population) { in findSameChromosome()
104 public void searchForFitnessUpdate(Population population) { in searchForFitnessUpdate() argument
105 Chromosome sameChromosome = findSameChromosome(population); in searchForFitnessUpdate()
DStoppingCondition.java34 boolean isSatisfied(Population population); in isSatisfied() argument
DSelectionPolicy.java31 ChromosomePair select(Population population); in select() argument
DFixedGenerationCount.java55 public boolean isSatisfied(Population population) { in isSatisfied() argument
/external/python/cpython3/Lib/
Drandom.py282 def sample(self, population, k): argument
310 if isinstance(population, _Set):
311 population = tuple(population)
312 if not isinstance(population, _Sequence):
315 n = len(population)
324 pool = list(population)
337 result[i] = population[j]
340 def choices(self, population, weights=None, *, cum_weights=None, k=1): argument
351 total = len(population)
352 return [population[_int(random() * total)] for i in range(k)]
[all …]
/external/python/cpython3/Doc/library/
Dstatistics.rst37 These functions calculate an average or typical value from a population
53 These functions calculate a measure of how much the population or sample
107 The sample mean gives an unbiased estimate of the true population mean,
109 ``mean(sample)`` converges on the true mean of the entire population. If
110 *data* represents the entire population rather than a sample, then
111 ``mean(data)`` is equivalent to calculating the true population mean μ.
296 Return the population standard deviation (the square root of the population
307 Return the population variance of *data*, a non-empty iterable of real-valued
317 Use this function to calculate the variance from the entire population. To
358 When called with the entire population, this gives the population variance
[all …]
Drandom.rst142 .. function:: choices(population, weights=None, *, cum_weights=None, k=1)
144 Return a *k* sized list of elements chosen from the *population* with replacement.
145 If the *population* is empty, raises :exc:`IndexError`.
158 the same length as the *population* sequence. It is a :exc:`TypeError`
185 .. function:: sample(population, k)
187 Return a *k* length list of unique elements chosen from the population sequence
190 Returns a new list containing elements from the population while leaving the
191 original population unchanged. The resulting list is in selection order so that
196 Members of the population need not be :term:`hashable` or unique. If the population
201 population: ``sample(range(10000000), k=60)``.
[all …]
/external/python/cpython2/Lib/
Drandom.py293 def sample(self, population, k): argument
321 n = len(population)
330 if n <= setsize or hasattr(population, "keys"):
333 pool = list(population)
347 result[i] = population[j]
349 if isinstance(population, list):
351 return self.sample(tuple(population), k)
/external/python/cpython3/Lib/test/
Dtest_random.py103 population = range(N)
105 s = self.gen.sample(population, k)
109 self.assertTrue(uniq <= set(population))
112 self.assertRaises(ValueError, self.gen.sample, population, N+1)
157 choices(k=5, population=data, weights=range(4)),
158 choices(k=5, population=data, cum_weights=range(4)),
650 population = ['Red', 'Black', 'Green']
659 b = self.gen.choices(population, weights, k=10000)
663 c = self.gen.choices(population, cum_weights=cum_weights, k=10000)
/external/python/cpython2/Doc/library/
Drandom.rst172 .. function:: sample(population, k)
174 Return a *k* length list of unique elements chosen from the population sequence.
179 Returns a new list containing elements from the population while leaving the
180 original population unchanged. The resulting list is in selection order so that
185 Members of the population need not be :term:`hashable` or unique. If the population
190 population: ``sample(xrange(10000000), 60)``.
/external/llvm/lib/Target/SystemZ/
DSystemZProcessors.td48 "population-count", "PopulationCount",
49 "Assume that the population-count facility is installed"
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_FusedBatchNorm.pbtxt24 A 1D Tensor for population mean. Used for inference only;
31 A 1D Tensor for population variance. Used for inference only;
Dapi_def_FusedBatchNormGrad.pbtxt26 False, a 1D Tensor for the population mean to be reused in both
36 for the population variance to be reused in both 1st and 2nd
Dapi_def_FusedBatchNormV2.pbtxt24 A 1D Tensor for population mean. Used for inference only;
31 A 1D Tensor for population variance. Used for inference only;
Dapi_def_FusedBatchNormGradV2.pbtxt26 False, a 1D Tensor for the population mean to be reused in both
36 for the population variance to be reused in both 1st and 2nd
Dapi_def_PopulationCount.pbtxt3 summary: "Computes element-wise population count (a.k.a. popcount, bitsum, bitcount)."
/external/webp/src/dsp/
Dlossless_enc_mips32.c107 static double ExtraCost_MIPS32(const uint32_t* const population, int length) { in ExtraCost_MIPS32() argument
109 const uint32_t* pop = &population[4]; in ExtraCost_MIPS32()
110 const uint32_t* const LoopEnd = &population[length]; in ExtraCost_MIPS32()
/external/harfbuzz_ng/test/shaping/
Dhb_test_tools.py268 def zscore (self, population): argument
276 return (self.mean () - population.mean ()) / population.stddev ()
/external/tensorflow/tensorflow/docs_src/programmers_guide/
Destimators.md96 population = tf.feature_column.numeric_column('population')
106 feature_columns=[population, crime_rate, median_education],
/external/llvm/test/CodeGen/SystemZ/
Dvec-ctpop-01.ll1 ; Test vector population-count instruction

123