Home
last modified time | relevance | path

Searched refs:quantiles (Results 1 – 25 of 29) sorted by relevance

12

/external/ltp/testcases/realtime/lib/
Dlibstats.c206 int stats_quantiles_init(stats_quantiles_t * quantiles, int nines) in stats_quantiles_init() argument
211 quantiles->nines = nines; in stats_quantiles_init()
213 quantiles->quantiles = calloc(sizeof(long), (nines - 1)); in stats_quantiles_init()
214 if (!quantiles->quantiles) { in stats_quantiles_init()
220 int stats_quantiles_free(stats_quantiles_t * quantiles) in stats_quantiles_free() argument
222 free(quantiles->quantiles); in stats_quantiles_free()
227 stats_quantiles_t * quantiles) in stats_quantiles_calc() argument
235 (data->index + 1) < (long)exp10(quantiles->nines)) { in stats_quantiles_calc()
242 for (i = 2; i <= quantiles->nines; i++) { in stats_quantiles_calc()
244 quantiles->quantiles[i - 2] = data->records[index].y; in stats_quantiles_calc()
[all …]
/external/ltp/testcases/realtime/include/
Dlibstats.h72 long *quantiles; member
126 int stats_quantiles_init(stats_quantiles_t *quantiles, int nines);
131 int stats_quantiles_free(stats_quantiles_t *quantiles);
137 int stats_quantiles_calc(stats_container_t *data, stats_quantiles_t *quantiles);
142 void stats_quantiles_print(stats_quantiles_t *quantiles);
/external/tensorflow/tensorflow/python/kernel_tests/boosted_trees/
Dquantile_ops_test.py101 quantiles = boosted_trees_ops.boosted_trees_bucketize(
108 self.assertAllClose(self._feature_0_quantiles, quantiles[0])
109 self.assertAllClose(self._feature_1_quantiles, quantiles[1])
133 quantiles = boosted_trees_ops.boosted_trees_bucketize(
143 self.assertAllClose(self._feature_0_quantiles, quantiles[0])
144 self.assertAllClose(self._feature_1_quantiles, quantiles[1])
170 quantiles = boosted_trees_ops.boosted_trees_bucketize(
177 self.assertAllClose(self._feature_0_quantiles, quantiles[0])
178 self.assertAllClose(self._feature_1_quantiles, quantiles[1])
/external/ltp/testcases/realtime/func/periodic_cpu_load/
Dperiodic_cpu_load.c68 stats_quantiles_t quantiles[THREADS_PER_GROUP * NUM_GROUPS]; variable
199 stats_quantiles_init(&quantiles[i], (int)log10(iterations)); in main()
227 stats_quantiles_calc(&dat[i], &quantiles[i]); in main()
228 stats_quantiles_print(&quantiles[i]); in main()
243 stats_quantiles_free(&quantiles[i]); in main()
Dperiodic_cpu_load_single.c90 stats_quantiles_t quantiles; in periodic_thread() local
102 stats_quantiles_init(&quantiles, (int)log10(iterations)); in periodic_thread()
155 stats_quantiles_calc(&dat, &quantiles); in periodic_thread()
156 stats_quantiles_print(&quantiles); in periodic_thread()
/external/ltp/testcases/realtime/func/sched_latency/
Dsched_latency.c76 stats_quantiles_t quantiles; variable
234 stats_quantiles_calc(&dat, &quantiles); in periodic_thread()
235 stats_quantiles_print(&quantiles); in periodic_thread()
283 if (stats_quantiles_init(&quantiles, (int)log10(iterations))) { in main()
301 stats_quantiles_free(&quantiles); in main()
/external/ltp/testcases/realtime/func/hrtimer-prio/
Dhrtimer-prio.c181 stats_quantiles_t quantiles; in main() local
190 if (stats_quantiles_init(&quantiles, (int)log10(iterations))) { in main()
224 stats_quantiles_calc(&dat, &quantiles); in main()
225 stats_quantiles_print(&quantiles); in main()
/external/ltp/testcases/realtime/func/gtod_latency/
Dgtod_latency.c235 stats_quantiles_t quantiles; in main() local
253 stats_quantiles_init(&quantiles, (int)log10(iterations)); in main()
349 stats_quantiles_calc(&dat, &quantiles); in main()
350 stats_quantiles_print(&quantiles); in main()
354 stats_quantiles_free(&quantiles); in main()
/external/guava/android/guava-tests/test/com/google/common/math/
DQuantilesAlgorithmTest.java79 Map<Integer, Double> quantiles = algorithm.multipleQuantiles(indexes, 100, dataset.clone()); in testMultipleQuantile() local
80 assertWithMessage("Wrong keys from " + algorithm).that(quantiles.keySet()).isEqualTo(indexes); in testMultipleQuantile()
83 .that(quantiles.get(i)) in testMultipleQuantile()
/external/guava/guava-tests/test/com/google/common/math/
DQuantilesAlgorithmTest.java79 Map<Integer, Double> quantiles = algorithm.multipleQuantiles(indexes, 100, dataset.clone()); in testMultipleQuantile() local
80 assertWithMessage("Wrong keys from " + algorithm).that(quantiles.keySet()).isEqualTo(indexes); in testMultipleQuantile()
83 .that(quantiles.get(i)) in testMultipleQuantile()
/external/ltp/testcases/realtime/func/pthread_kill_latency/
Dpthread_kill_latency.c121 stats_quantiles_t quantiles; in signal_receiving_thread() local
126 stats_quantiles_init(&quantiles, (int)log10(ITERATIONS)); in signal_receiving_thread()
216 stats_quantiles_calc(&dat, &quantiles); in signal_receiving_thread()
217 stats_quantiles_print(&quantiles); in signal_receiving_thread()
/external/python/cpython3/Lib/test/
Dtest_statistics.py2228 quantiles = statistics.quantiles
2245 self.assertEqual(expected, quantiles(data, n=n))
2246 self.assertEqual(len(quantiles(data, n=n)), n - 1)
2249 result = quantiles(map(datatype, data), n=n)
2254 self.assertEqual(quantiles(expected, n=n), expected)
2263 quantiles(data, n=n),
2264 quantiles(padded_data, n=n, method='inclusive'),
2271 act = quantiles(map(f, data), n=n)
2276 q1, q2, q3 = quantiles(data)
2283 quantiles = statistics.quantiles
[all …]
/external/tensorflow/tensorflow/core/kernels/boosted_trees/quantiles/
Dweighted_quantiles_summary_test.cc24 using Buffer = boosted_trees::quantiles::WeightedQuantilesBuffer<float, float>;
26 boosted_trees::quantiles::WeightedQuantilesBuffer<float,
29 boosted_trees::quantiles::WeightedQuantilesSummary<float, float>;
31 boosted_trees::quantiles::WeightedQuantilesSummary<float,
Dweighted_quantiles_buffer_test.cc25 boosted_trees::quantiles::WeightedQuantilesBuffer<double, double>;
27 boosted_trees::quantiles::WeightedQuantilesBuffer<double,
Dweighted_quantiles_stream_test.cc26 boosted_trees::quantiles::WeightedQuantilesSummary<double, double>;
28 boosted_trees::quantiles::WeightedQuantilesSummary<double,
31 boosted_trees::quantiles::WeightedQuantilesStream<double, double>;
Dquantile_stream_resource.h27 boosted_trees::quantiles::WeightedQuantilesStream<float, float>;
Dweighted_quantiles_buffer.h27 namespace quantiles {
Dweighted_quantiles_stream.h28 namespace quantiles {
Dweighted_quantiles_summary.h26 namespace quantiles {
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_BoostedTreesMakeQuantileSummaries.pbtxt36 summary: "Makes the summary of quantiles for the batch."
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dquantile_ops.cc54 boosted_trees::quantiles::WeightedQuantilesStream<float, float>;
56 boosted_trees::quantiles::WeightedQuantilesSummary<float, float>;
58 boosted_trees::quantiles::WeightedQuantilesSummary<float,
DBUILD128 "//tensorflow/core/kernels/boosted_trees/quantiles:weighted_quantiles",
/external/python/cpython3/Doc/library/
Dstatistics.rst55 :func:`quantiles` Divide data into intervals with equal probability.
515 .. function:: quantiles(data, *, n=4, method='exclusive')
534 The *method* for computing quantiles can be varied depending on
562 >>> [round(q, 1) for q in quantiles(data, n=10)]
689 .. method:: NormalDist.quantiles(n=4)
764 >>> list(map(round, sat.quantiles()))
766 >>> list(map(round, sat.quantiles(n=10)))
782 >>> quantiles(map(model, X, Y, Z)) # doctest: +SKIP
/external/python/cpython3/Lib/
Dstatistics.py619 def quantiles(data, *, n=4, method='exclusive'): function
964 def quantiles(self, n=4): member in NormalDist
/external/python/cpython3/Misc/NEWS.d/
D3.8.0a4.rst477 Add statistics.quantiles()

12