Home
last modified time | relevance | path

Searched refs:intervals (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/third_party/boost/libs/geometry/test/algorithms/
Dmaximum_gap.cpp81 RangeOfIntervals const& intervals, in test_one() argument
90 gap_type gap = bg::maximum_gap(intervals); in test_one()
94 it = boost::const_begin(intervals); in test_one()
95 it != boost::const_end(intervals); in test_one()
117 uint_intervals intervals; in BOOST_AUTO_TEST_CASE() local
119intervals = uint_intervals(3,4)(1,10)(5,11)(20,35)(12,14)(36,40)(39,41)(35,36)(37,37)(50,50)(50,51… in BOOST_AUTO_TEST_CASE()
120 test_one("case_01", intervals, 9); in BOOST_AUTO_TEST_CASE()
122intervals = uint_intervals(3,4)(1,10)(5,11)(20,35)(52,60)(12,14)(36,40)(39,41)(35,36)(37,37)(55,56… in BOOST_AUTO_TEST_CASE()
123 test_one("case_02", intervals, 11); in BOOST_AUTO_TEST_CASE()
125 intervals = uint_intervals(3,4); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/libs/random/test/
Dtest_piecewise_constant_distribution.cpp51 CHECK_SEQUENCE(dist.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE()
58 CHECK_SEQUENCE(dist_il.intervals(), list_of(99)(103)(107)(111)(115)); in BOOST_AUTO_TEST_CASE()
65 CHECK_SEQUENCE(dist_il2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE()
68 std::vector<double> intervals = boost::assign::list_of(0)(1)(2)(3)(5); in BOOST_AUTO_TEST_CASE() local
73 boost::random::piecewise_constant_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE()
74 CHECK_SEQUENCE(dist_r.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE()
79 CHECK_SEQUENCE(dist_r2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE()
83 intervals.begin(), intervals.end(), weights.begin()); in BOOST_AUTO_TEST_CASE()
84 CHECK_SEQUENCE(dist_it.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE()
89 CHECK_SEQUENCE(dist_it2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_piecewise_linear_distribution.cpp51 CHECK_SEQUENCE(dist.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE()
59 CHECK_SEQUENCE(dist_il.intervals(), list_of(99)(103)(107)(111)(115)); in BOOST_AUTO_TEST_CASE()
67 CHECK_SEQUENCE(dist_il2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE()
70 std::vector<double> intervals = boost::assign::list_of(0)(1)(2)(3)(5); in BOOST_AUTO_TEST_CASE() local
75 boost::random::piecewise_linear_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE()
76 CHECK_SEQUENCE(dist_r.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE()
81 CHECK_SEQUENCE(dist_r2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE()
85 intervals.begin(), intervals.end(), weights.begin()); in BOOST_AUTO_TEST_CASE()
86 CHECK_SEQUENCE(dist_it.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE()
91 CHECK_SEQUENCE(dist_it2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_piecewise_linear.cpp29 piecewise_linear(const std::vector<double>& intervals, const std::vector<double>& weights) in piecewise_linear() argument
30 : intervals(intervals), in piecewise_linear()
49 assert(this->weights.size() == this->intervals.size()); in piecewise_linear()
55 std::size_t index = boost::lower_bound(intervals, x) - intervals.begin(); in cdf()
57 else if(index == intervals.size()) return 1; in cdf()
62 double lower = intervals[index - 1]; in cdf()
63 double upper = intervals[index]; in cdf()
70 std::vector<double> intervals; member in piecewise_linear
90 std::vector<double> intervals; in do_test() local
92 intervals.push_back(i); in do_test()
[all …]
Dtest_piecewise_constant.cpp28 piecewise_constant(const std::vector<double>& intervals, const std::vector<double>& weights) in piecewise_constant() argument
29 : intervals(intervals), in piecewise_constant()
42 std::size_t index = boost::lower_bound(intervals, x) - intervals.begin(); in cdf()
44 else if(index == intervals.size()) return 1; in cdf()
48 double lower = intervals[index - 1]; in cdf()
49 double upper = intervals[index]; in cdf()
54 std::vector<double> intervals; member in piecewise_constant
73 std::vector<double> intervals; in do_test() local
75 intervals.push_back(i); in do_test()
78 piecewise_constant expected(intervals, weights); in do_test()
[all …]
/third_party/flutter/skia/gm/
Dtexteffects.cpp179 static int trim_with_halo(SkScalar intervals[], int count, SkScalar margin) { in trim_with_halo() argument
183 SkScalar* stop = intervals + count; in trim_with_halo()
184 *intervals++ -= margin; in trim_with_halo()
185 while (intervals < stop - 1) { in trim_with_halo()
186 intervals[0] += margin; in trim_with_halo()
187 intervals[1] -= margin; in trim_with_halo()
188 if (intervals[0] >= intervals[1]) { // went away in trim_with_halo()
189 int remaining = stop - intervals - 2; in trim_with_halo()
192 memmove(intervals, intervals + 2, remaining * sizeof(SkScalar)); in trim_with_halo()
197 intervals += 2; in trim_with_halo()
[all …]
Dbug530095.cpp27 SkScalar intervals[] = {700, 700 }; variable
28 int intervalCount = (int) SK_ARRAY_COUNT(intervals);
29 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, -40));
43 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, 0));
63 const SkScalar intervals[] = { 100, 100 }; variable
64 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 100));
/third_party/skia/gm/
Dtexteffects.cpp179 static int trim_with_halo(SkScalar intervals[], int count, SkScalar margin) { in trim_with_halo() argument
183 SkScalar* stop = intervals + count; in trim_with_halo()
184 *intervals++ -= margin; in trim_with_halo()
185 while (intervals < stop - 1) { in trim_with_halo()
186 intervals[0] += margin; in trim_with_halo()
187 intervals[1] -= margin; in trim_with_halo()
188 if (intervals[0] >= intervals[1]) { // went away in trim_with_halo()
189 int remaining = stop - intervals - 2; in trim_with_halo()
192 memmove(intervals, intervals + 2, remaining * sizeof(SkScalar)); in trim_with_halo()
197 intervals += 2; in trim_with_halo()
[all …]
Dbug530095.cpp26 SkScalar intervals[] = {700, 700 }; variable
27 int intervalCount = (int) SK_ARRAY_COUNT(intervals);
28 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, -40));
42 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, 0));
62 const SkScalar intervals[] = { 100, 100 }; variable
63 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 100));
/third_party/flutter/skia/tests/
DDashPathEffectTest.cpp28 SkScalar intervals[] = { 1.76934361e+36f, 2.80259693e-45f }; // Values from bug. in DEF_TEST() local
31 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, phase)); in DEF_TEST()
39 const SkScalar intervals[] = { 1.0f, 1.0f }; in DEF_TEST() local
41 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, 0.0f)); in DEF_TEST()
102 SkScalar intervals[2] = { 1, 1 }; in DEF_TEST() local
103 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, 2, 0)); in DEF_TEST()
122 const SkScalar intervals[] = { 1, 1 }; in DEF_TEST() local
123 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in DEF_TEST()
/third_party/skia/tests/
DDashPathEffectTest.cpp29 SkScalar intervals[] = { 1.76934361e+36f, 2.80259693e-45f }; // Values from bug. in DEF_TEST() local
32 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, phase)); in DEF_TEST()
40 const SkScalar intervals[] = { 1.0f, 1.0f }; in DEF_TEST() local
42 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, 0.0f)); in DEF_TEST()
103 SkScalar intervals[2] = { 1, 1 }; in DEF_TEST() local
104 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, 2, 0)); in DEF_TEST()
123 const SkScalar intervals[] = { 1, 1 }; in DEF_TEST() local
124 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in DEF_TEST()
/third_party/skia/src/core/
DSkRegionPriv.h150 const int intervals = runs[1]; in SkipEntireScanline() local
151 SkASSERT(runs[2 + intervals * 2] == SkRegion_kRunTypeSentinel); in SkipEntireScanline()
155 SkASSERT(n == intervals); in SkipEntireScanline()
160 runs += 1 + 1 + intervals * 2 + 1; in SkipEntireScanline()
208 const int intervals = *runs++; in computeRunBounds() local
209 SkASSERT(intervals >= 0); in computeRunBounds()
210 SkASSERT(intervals < SkRegion_kRunTypeSentinel); in computeRunBounds()
212 if (intervals > 0) { in computeRunBounds()
216 SkASSERT(n == intervals); in computeRunBounds()
225 runs += intervals * 2; in computeRunBounds()
[all …]
/third_party/flutter/skia/src/core/
DSkRegionPriv.h150 const int intervals = runs[1]; in SkipEntireScanline() local
151 SkASSERT(runs[2 + intervals * 2] == SkRegion_kRunTypeSentinel); in SkipEntireScanline()
155 SkASSERT(n == intervals); in SkipEntireScanline()
160 runs += 1 + 1 + intervals * 2 + 1; in SkipEntireScanline()
208 const int intervals = *runs++; in computeRunBounds() local
209 SkASSERT(intervals >= 0); in computeRunBounds()
210 SkASSERT(intervals < SkRegion_kRunTypeSentinel); in computeRunBounds()
212 if (intervals > 0) { in computeRunBounds()
216 SkASSERT(n == intervals); in computeRunBounds()
225 runs += intervals * 2; in computeRunBounds()
[all …]
/third_party/flutter/skia/docs/examples/
DTextBlob_getIntercepts.cpp22 std::vector<SkScalar> intervals;
23 intervals.resize(count);
24 (void) paint.getTextBlobIntercepts(blob.get(), bounds, &intervals.front());
29 canvas->drawRect({x, bounds[0], intervals[i], bounds[1]}, paint);
30 x = intervals[i + 1];
32 canvas->drawRect({intervals[count - 1], bounds[0], 180, bounds[1]}, paint);
DPaint_move_SkPaint.cpp8 float intervals[] = { 5, 5 }; in draw() local
9 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 2.5f)); in draw()
/third_party/skia/docs/examples/
DTextBlob_getIntercepts.cpp22 std::vector<SkScalar> intervals;
23 intervals.resize(count);
24 (void) paint.getTextBlobIntercepts(blob.get(), bounds, &intervals.front());
29 canvas->drawRect({x, bounds[0], intervals[i], bounds[1]}, paint);
30 x = intervals[i + 1];
32 canvas->drawRect({intervals[count - 1], bounds[0], 180, bounds[1]}, paint);
Dskpaint_dash_path_effect.cpp16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local
17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw()
19 paint.setPathEffect(SkDashPathEffect::Make(intervals, count, 0.0f)); in draw()
Dskpaint_compose_path_effect.cpp16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local
17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw()
20 SkPathEffect::MakeCompose(SkDashPathEffect::Make(intervals, count, 0.0f), in draw()
Dcompose_path.cpp16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local
17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw()
20 SkPathEffect::MakeCompose(SkDashPathEffect::Make(intervals, count, 0.0f), in draw()
DPaint_move_SkPaint.cpp8 float intervals[] = { 5, 5 }; in draw() local
9 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 2.5f)); in draw()
/third_party/skia/modules/sksg/src/
DSkSGGeometryEffect.cpp97 sk_sp<SkPathEffect> make_dash(const std::vector<float> intervals, float phase) { in make_dash() argument
98 if (intervals.empty()) { in make_dash()
102 const auto* intervals_ptr = intervals.data(); in make_dash()
103 auto intervals_count = intervals.size(); in make_dash()
111 std::copy(intervals.begin(), intervals.end(), storage.begin()); in make_dash()
112 std::copy(intervals.begin(), intervals.end(), storage.begin() + intervals.size()); in make_dash()
/third_party/ltp/testcases/realtime/func/rt-migrate/
Drt-migrate.c151 stats_container_t *intervals; variable
234 stats_container_append(&intervals[id], rec); in record_time()
261 tasks_max[t] = stats_max(&intervals[t]); in print_results()
262 tasks_min[t] = stats_min(&intervals[t]); in print_results()
263 tasks_avg[t] = stats_avg(&intervals[t]); in print_results()
268 printf("%6ld ", intervals[t].records[i].y); in print_results()
366 if (i && last < intervals[i].records[l].y && in check_times()
367 ((intervals[i].records[l].y - last) > max_err)) { in check_times()
375 intervals[i].records[l].y > last_length || in check_times()
383 last = intervals[i].records[l].y; in check_times()
[all …]
/third_party/flutter/skia/tools/lua/
Dscrape_dashing_full.lua71 increment(dashInterval_count, #de.intervals)
72 if 2 == #de.intervals then
73 if 1 == de.intervals[1] and 1 == de.intervals[2] then
75 elseif 0 == de.intervals[1] then
/third_party/boost/libs/icl/doc/
Dfunctions_interval_construct.qbk33 of intervals. All interval constructin functins are of ['*constant time and space complexity*].
47 … [For dynamically bounded intervals this function constructs an
64 `` ] [For dynamically bounded intervals there are…
65 … construct intervals with the four interval bound types:
76 … The library default uses ['*dynamically bounded intervals*]. You
77 … can switch to ['*statically bounded intervals*] by
90 … This works with the statically bounded intervals as well,
102 … [link boost_icl.examples.dynamic_interval Dynamic intervals] and
103 … [link boost_icl.examples.static_interval Static intervals]
110 [[[link boost_icl.examples.dynamic_interval ['*Example: Dynamically bounded intervals and the libra…
[all …]
/third_party/boost/libs/icl/test/fix_tickets_/
Dfix_tickets.cpp86 boost::icl::interval_map<Value, int, boost::icl::total_enricher> intervals; in BOOST_AUTO_TEST_CASE() local
88 intervals += std::make_pair(Interval::closed(min, max), 0); in BOOST_AUTO_TEST_CASE()
89 intervals += std::make_pair(Interval::right_open(0, 10), 3); in BOOST_AUTO_TEST_CASE()
91 BOOST_CHECK_EQUAL(intervals.iterative_size(), 3); in BOOST_AUTO_TEST_CASE()
189 boost::icl::split_interval_set<int> intervals; in BOOST_AUTO_TEST_CASE() local
190 intervals.insert(boost::icl::discrete_interval<int>(1, 2)); in BOOST_AUTO_TEST_CASE()
191 intervals.insert(boost::icl::discrete_interval<int>(2, 3)); in BOOST_AUTO_TEST_CASE()
192 intervals.insert(boost::icl::discrete_interval<int>(0, 3)); in BOOST_AUTO_TEST_CASE()
194 BOOST_CHECK_EQUAL(intervals.size(), 3); in BOOST_AUTO_TEST_CASE()

12345678910>>...12