Home
last modified time | relevance | path

Searched refs:max_distance (Results 1 – 25 of 71) sorted by relevance

123

/third_party/boost/boost/geometry/algorithms/
Dsimplify.hpp75 Distance const& max_distance, Strategy const& strategy) in apply()
86 else if (boost::size(range) <= 2 || max_distance < 0) in apply()
92 strategy.apply(range, out, max_distance); in apply()
118 Distance const& max_distance, Strategy const& strategy) in apply()
128 if (boost::size(range) <= MinimumToUseStrategy || max_distance < 0) in apply()
130 simplify_copy::apply(range, out, max_distance, strategy); in apply()
136 range, geometry::range::back_inserter(out), max_distance, strategy in apply()
165 typename Strategy::distance_type max_distance(-1); in get_opposite() local
175 if (dist > max_distance) in get_opposite()
177 max_distance = dist; in get_opposite()
[all …]
Dline_interpolate.hpp78 Distance const& max_distance, in apply()
95 if (max_distance <= 0) //non positive distance in apply()
102 Distance repeated_distance = max_distance; in apply()
128 repeated_distance += max_distance; in apply()
137 if (repeated_distance == max_distance) in apply()
149 Distance const& max_distance, in apply()
154 max_distance, point, strategy); in apply()
232 Distance const& max_distance, in apply()
237 max_distance, in apply()
244 Distance const& max_distance, in apply()
[all …]
Ddensify.hpp268 Distance const& max_distance, in apply()
272 ::apply(geometry, out, max_distance, strategy); in apply()
278 Distance const& max_distance, in apply()
290 apply(geometry, out, max_distance, strategy_type()); in apply()
305 Distance const& max_distance, in apply()
308 resolve_strategy::densify::apply(geometry, out, max_distance, strategy); in apply()
321 visitor(Distance const& max_distance, Strategy const& strategy) in visitor()
322 : m_max_distance(max_distance) in visitor()
337 Distance const& max_distance, in apply()
341 visitor<Distance, Strategy>(max_distance, strategy), in apply()
[all …]
/third_party/node/deps/brotli/c/common/
Dconstants.h107 uint32_t max_distance; member
128 uint32_t max_distance, uint32_t npostfix, uint32_t ndirect) { in BrotliCalculateDistanceCodeLimit() argument
133 if (max_distance <= ndirect) { in BrotliCalculateDistanceCodeLimit()
135 result.max_alphabet_size = max_distance + BROTLI_NUM_DISTANCE_SHORT_CODES; in BrotliCalculateDistanceCodeLimit()
136 result.max_distance = max_distance; in BrotliCalculateDistanceCodeLimit()
140 uint32_t forbidden_distance = max_distance + 1; in BrotliCalculateDistanceCodeLimit()
167 result.max_distance = ndirect; in BrotliCalculateDistanceCodeLimit()
184 result.max_distance = ((start + extra) << npostfix) + postfix + ndirect + 1; in BrotliCalculateDistanceCodeLimit()
/third_party/skia/third_party/externals/brotli/c/common/
Dconstants.h107 uint32_t max_distance; member
128 uint32_t max_distance, uint32_t npostfix, uint32_t ndirect) { in BrotliCalculateDistanceCodeLimit() argument
133 if (max_distance <= ndirect) { in BrotliCalculateDistanceCodeLimit()
135 result.max_alphabet_size = max_distance + BROTLI_NUM_DISTANCE_SHORT_CODES; in BrotliCalculateDistanceCodeLimit()
136 result.max_distance = max_distance; in BrotliCalculateDistanceCodeLimit()
140 uint32_t forbidden_distance = max_distance + 1; in BrotliCalculateDistanceCodeLimit()
167 result.max_distance = ndirect; in BrotliCalculateDistanceCodeLimit()
184 result.max_distance = ((start + extra) << npostfix) + postfix + ndirect + 1; in BrotliCalculateDistanceCodeLimit()
/third_party/ninja/src/
Dedit_distance_test.cc27 for (int max_distance = 1; max_distance < 7; ++max_distance) { in TEST() local
28 EXPECT_EQ(max_distance + 1, in TEST()
30 allow_replacements, max_distance)); in TEST()
/third_party/boost/libs/geometry/test/algorithms/
Ddensify.cpp123 inline void check_result(G const& g, G const& o, double max_distance, in check_result() argument
139 bool is_close = (gr_len - max_distance) / (std::max)(gr_len, max_distance) < 0.0001; in check_result()
140 BOOST_CHECK(gr_len <= max_distance || is_close); in check_result()
156 double max_distance = shortest_length(g, def_s) / 3.0; in test_geometry() local
159 bg::densify(g, o, max_distance); in test_geometry()
161 check_result(g, o, max_distance, def_s, check); in test_geometry()
165 double max_distance = shortest_length(g, d.dist_s) / 3.0; in test_geometry() local
168 bg::densify(g, o, max_distance, d.compl_s); in test_geometry()
170 check_result(g, o, max_distance, d.dist_s, check); in test_geometry()
Dtest_simplify.hpp97 distance_type max_distance(distance); in apply() local
98 less_comparator less(max_distance); in apply()
109 std::back_inserter(simplified), max_distance, strategy); in apply()
190 distance_type const max_distance(distance); in test_geometry() local
191 less_comparator const less(max_distance); in test_geometry()
/third_party/boost/libs/math/tools/
Dlambert_w_errors_graph.cpp74 int max_distance = 0; in main() local
100 if (abs_distance > max_distance) in main()
102 max_distance = abs_distance; in main()
108 std::cout << "max distance " << max_distance << ", total distances = " << total_distance in main()
163 int max_distance = 0; in main() local
193 if (abs_distance > max_distance) in main()
195 max_distance = abs_distance; in main()
202 std::cout << "max distance " << max_distance << ", total distances = " << total_distance in main()
/third_party/boost/boost/geometry/strategies/cartesian/
Dbuffer_join_miter.hpp97 promoted_type const max_distance in apply() local
100 if (distance > max_distance) in apply()
104 promoted_type const proportion = max_distance / distance; in apply()
116 inline NumericType max_distance(NumericType const& distance) const in max_distance() function in boost::geometry::strategy::buffer::join_miter
/third_party/node/deps/brotli/c/enc/
Dbackward_references_inc.h42 size_t max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in EXPORT_FN() local
52 max_distance, dictionary_start + gap, params->dist.max_distance, &sr); in EXPORT_FN()
65 max_distance = BROTLI_MIN(size_t, position + 1, max_backward_limit); in EXPORT_FN()
71 max_distance, dictionary_start + gap, params->dist.max_distance, in EXPORT_FN()
Dhash_composite_inc.h115 const size_t dictionary_distance, const size_t max_distance, in FN()
119 max_distance, out); in FN()
122 max_distance, out); in FN()
Dbackward_references.c26 size_t max_distance, in ComputeDistanceCode() argument
28 if (distance <= max_distance) { in ComputeDistanceCode()
/third_party/skia/third_party/externals/brotli/c/enc/
Dbackward_references_inc.h42 size_t max_distance = BROTLI_MIN(size_t, position, max_backward_limit); in EXPORT_FN() local
52 max_distance, dictionary_start + gap, params->dist.max_distance, &sr); in EXPORT_FN()
65 max_distance = BROTLI_MIN(size_t, position + 1, max_backward_limit); in EXPORT_FN()
71 max_distance, dictionary_start + gap, params->dist.max_distance, in EXPORT_FN()
Dhash_composite_inc.h115 const size_t dictionary_distance, const size_t max_distance, in FN()
119 max_distance, out); in FN()
122 max_distance, out); in FN()
Dbackward_references.c26 size_t max_distance, in ComputeDistanceCode() argument
28 if (distance <= max_distance) { in ComputeDistanceCode()
/third_party/boost/boost/geometry/strategies/agnostic/
Dbuffer_distance_symmetric.hpp79 inline NumericType max_distance(JoinStrategy const& join_strategy, in max_distance() function in boost::geometry::strategy::buffer::distance_symmetric
85 return (std::max)(join_strategy.max_distance(dist), in max_distance()
86 end_strategy.max_distance(dist)); in max_distance()
Dsimplify_douglas_peucker.hpp199 distance_type max_distance) const in apply()
202 std::cout << "max distance: " << max_distance in apply()
219 … consider(boost::begin(ref_candidates), boost::end(ref_candidates), max_distance, n, strategy); in apply()
282 distance_type const& max_distance) in apply() argument
299 max_distance) in apply()
Dbuffer_distance_asymmetric.hpp81 inline NumericType max_distance(JoinStrategy const& join_strategy, in max_distance() function in boost::geometry::strategy::buffer::distance_asymmetric
89 return (std::max)(join_strategy.max_distance(dist), in max_distance()
90 end_strategy.max_distance(dist)); in max_distance()
/third_party/boost/libs/geometry/doc/generated/
Dline_interpolate.qbk23 void line_interpolate(Geometry const & geometry, Distance const & max_distance, Pointlike & pointli…
31 [[Distance const &] [A numerical distance measure ] [max_distance] [Distance threshold (in units de…
32 …ctly one point will be constructed) or a MultiPoint (depending on the max_distance one or more poi…
70 void line_interpolate(Geometry const & geometry, Distance const & max_distance, Pointlike & pointli…
77 [[Distance const &] [A numerical distance measure ] [max_distance] [Distance threshold (in units de…
78 …ctly one point will be constructed) or a MultiPoint (depending on the max_distance one or more poi…
Dsimplify.qbk23 void simplify(Geometry const & geometry, Geometry & out, Distance const & max_distance,
32 [[Distance const &] [A numerical distance measure ] [max_distance] [distance (in units of input coo…
57 void simplify(Geometry const & geometry, Geometry & out, Distance const & max_distance)``
65 [[Distance const &] [numerical type (int, double, ttmath, ...) ] [max_distance] [distance (in units…
Ddensify.qbk23 void densify(Geometry const & geometry, Geometry & out, Distance const & max_distance,
32 [[Distance const &] [A numerical distance measure ] [max_distance] [Distance threshold (in units de…
70 void densify(Geometry const & geometry, Geometry & out, Distance const & max_distance)``
78 [[Distance const &] [A numerical distance measure ] [max_distance] [Distance threshold (in units de…
/third_party/python/Python/
Dsuggestions.c156 Py_ssize_t max_distance = (name_size + item_size + 3) * MOVE_COST / 6; in calculate_suggestions() local
158 max_distance = Py_MIN(max_distance, suggestion_distance - 1); in calculate_suggestions()
161 item_str, item_size, max_distance); in calculate_suggestions()
162 if (current_distance > max_distance) { in calculate_suggestions()
/third_party/boost/libs/math/doc/graphs/
Dplot_1d_errors.cpp48 Real max_distance(0), min_distance(0), max_error(0), max_error_location(0); in plot_errors_1d() local
77 if (max_distance < distance) in plot_errors_1d()
78 max_distance = (std::min)(distance, max_y_scale); in plot_errors_1d()
106 if (max_distance == 0) in plot_errors_1d()
107 max_distance = 1; in plot_errors_1d()
111 …nt)floor(min_distance), (int)ceil(max_distance)).x_label("x").y_major_interval((double)interval_fr… in plot_errors_1d()
/third_party/boost/boost/graph/
Dpush_relabel_max_flow.hpp213 max_distance = num_vertices(g) - 1; in push_relabel()
259 for (distance_size_type l = 0; l <= max_distance; ++l) in global_distance_update()
265 max_distance = max_active = 0; in global_distance_update()
286 max_distance = max BOOST_PREVENT_MACRO_SUBSTITUTION( in global_distance_update()
287 d_v, max_distance); in global_distance_update()
408 max_distance = max BOOST_PREVENT_MACRO_SUBSTITUTION( in relabel_distance()
409 min_distance, max_distance); in relabel_distance()
425 l < layers.begin() + max_distance; ++l) in gap()
436 max_distance = r; in gap()
788 distance_size_type max_distance; // maximal distance member in boost::detail::push_relabel

123