Commit Graph

4790 Commits

Author SHA1 Message Date
Barend Gehrels
4c00d1d460 [enrich] discard blocked clusters, change comments 2019-01-23 15:24:28 +01:00
Adam Wulkiewicz
ee4ebca3c6 [get_turns] Make side calculation for linear endpoints clearer. Don't calculate unnecessary sides. 2018-12-15 19:07:56 +01:00
Adam Wulkiewicz
60d1f8fa28 Merge pull request #531 from barendgehrels/feature/get_turn_info_add_retrieve_policy
Feature/get turn info add retrieve policy
2018-12-14 22:46:47 +01:00
Adam Wulkiewicz
b11ab4c713 Merge pull request #538 from awulkiew/fix/array_init
Add workaround for msvc-12 faulty array initialization.
2018-12-11 14:18:24 +01:00
Adam Wulkiewicz
e710403b4d [core][srs] Add workaround for msvc-12 faulty array initialization. 2018-12-10 22:47:11 +01:00
Barend Gehrels
bac949d20f [get_turn_info] add ranges 2018-12-08 21:39:51 +01:00
Barend Gehrels
2dce9c3c8a [get_turn_info] verify more pk/qk to avoid assertions 2018-12-08 19:31:38 +01:00
Barend Gehrels
bec490d6a1 [get_turn_info] review remark, i/o size use is_last_segment 2018-12-08 18:15:21 +01:00
Barend Gehrels
ca22e2445c [get_turn_info] rename wrongly named variables to more proper symbolic names 2018-12-08 17:45:29 +01:00
Barend Gehrels
a02a4646ce [get_turn_info] revise operations_of_equal, pass sides instead of ranges
because one of the calls had wrong order and yet another version was used.
Besides that it is simpler.
2018-12-08 17:33:56 +01:00
Barend Gehrels
9a6a578bee [get_turn_info] get rid of confusing names 2018-12-08 15:15:46 +01:00
Barend Gehrels
8626ae1655 [get_turn_info] avoid assertion by refactoring away side_calculator_for_endpoint,
such that pk/qk are now retrieved lazily. This also solves part of the
mystery of the points passed in wrong order.
2018-12-08 15:10:51 +01:00
Barend Gehrels
668e9b1707 [get_turn_info] Add conditions to avoid assert in collinear turn handler
and is_spike
2018-12-08 14:54:53 +01:00
Barend Gehrels
7ce6dfc7e6 [get_turn_info] review remarks, add assert
(still asserting sometimes)
2018-12-08 13:40:13 +01:00
Barend Gehrels
35bdde4dd9 [get_turn_info] review remarks, pass ranges first, use iterators, comments 2018-12-08 13:36:55 +01:00
Barend Gehrels
daf901aaf2 [get_turn_info] minor, comments, style 2018-12-05 11:25:17 +01:00
Barend Gehrels
fdac1fb86d [get_turn_info] now pi/qi are neither necessary, being used only once 2018-12-05 11:24:50 +01:00
Barend Gehrels
b6a537fcb4 [get_turn_info] now that buffer does not use assign_policy::apply anymore,
it can be omitted.
2018-12-05 10:44:32 +01:00
Barend Gehrels
3644f81f6a [get_turn_info] avoid typedef, omit pj/qj used once 2018-12-05 10:10:40 +01:00
Barend Gehrels
413e590994 [get_turn_info] rename typedef'ed PointQ to point1_type and similar 2018-12-05 10:09:56 +01:00
Barend Gehrels
e0a44b8fb5 [get_turn_info] rename has_k back to is_last 2018-12-05 10:09:21 +01:00
Barend Gehrels
e5b1711afc [get_turns] fix new code, use correct type 2018-12-05 10:09:04 +01:00
Barend Gehrels
83a1e07506 [buffer] do not calculate robust points in assign, but before.
This is slightly less performant (because it is now also calculated
for non-intersecting segments) but probably not significant,
and, more importantly, rescaling will be gone later
2018-12-04 22:31:59 +01:00
Barend Gehrels
11b33d6966 [buffer] propagate change retrieve -> sub_range to buffer 2018-12-04 22:22:00 +01:00
Barend Gehrels
5cc0ac19aa [get_turn_info] move is_p_last info is_spike_p which avoids many extra
checks and passing parameters. For remaining bools use the appropate
conditions directly
2018-12-04 20:28:43 +01:00
Barend Gehrels
9a31ac712f [get_turn_info] Replace get_point_i/j/k by at, and has_p by size()
to make a range-like concept
Also in review there were remark about i/j/k/l
2018-12-04 19:38:08 +01:00
Barend Gehrels
b38de4468e [get_turn_info] rename RetrieveAdditionalInfoPolicy to UniqueSubRange 2018-12-03 22:40:16 +01:00
Barend Gehrels
6bd612f3e6 [get_turn_info] remove pi,pj / qi,qj from other basic turn handlers
In many places it was not used
2018-12-03 20:02:39 +01:00
Barend Gehrels
c418492e4d [get_turn_info] remove pi,qj / qi,qj from end_points and other analyses
This also removes some debug code
2018-12-03 19:38:04 +01:00
Barend Gehrels
e7ff373b73 [get_turn_info] remove pi,pj / qi,qj from crosses 2018-12-03 19:35:39 +01:00
Barend Gehrels
812dc416ed [get_turn_info] incorporate pi/pj qi/qj into retriever
as suggested by Adam during review
2018-12-03 19:14:40 +01:00
Edward Diener
394f425746 Removed executable permission. 2018-12-03 07:59:11 -05:00
Barend Gehrels
f1b9c19402 [get_turn_info] bugfix, never return false for has_k for areal features 2018-12-01 13:23:14 +01:00
Barend Gehrels
5bf8066f36 [get_turn_info] process review remarks, rename policies, methods
Postpone getting pk/qk in collinear_opposite
2018-12-01 13:22:03 +01:00
Adam Wulkiewicz
2e04d7d1a8 [algorithms][doc] Fix discrete_frechet_distance() description. 2018-11-29 14:11:25 +01:00
Adam Wulkiewicz
fbac327ca9 [algorithms][doc] Fix Hausdorff's name. 2018-11-29 13:57:54 +01:00
Adam Wulkiewicz
18ee92853e [io][doc] Add documentation for DSV stream output. 2018-11-29 02:20:01 +01:00
Adam Wulkiewicz
3554207182 [algorithms][doc] Fix description of distance(). 2018-11-29 02:17:19 +01:00
Adam Wulkiewicz
5a1cd9d3aa [algorithms][doc] Fix discrete_hausdorff_distance() arguments' names. 2018-11-29 02:13:37 +01:00
Barend Gehrels
5cb39aa5c6 [get_turn_info] changes in side calculator 2018-11-28 18:53:54 +01:00
Barend Gehrels
2a4777e017 [get_turn_info] undo making side strategy a const reference 2018-11-28 18:13:33 +01:00
Barend Gehrels
065489a1c5 [get_turn_info] don't precalculate pk/qk in robust points 2018-11-28 17:08:08 +01:00
Barend Gehrels
a9dc805c15 [get_turn_info] make methods const& (needed) and remove pk/pq
Therefore the robust_retriever should store its result
2018-11-28 16:38:34 +01:00
Barend Gehrels
ea7ab83bb2 [get_turn_info] retrieve pk/qk on demand 2018-11-28 15:56:55 +01:00
Barend Gehrels
02971ec301 [get_turn_info] remove redundant methods, use robust point methods
for spike calculation
2018-11-28 13:48:33 +01:00
Barend Gehrels
e198744825 [get_turn_info] pass retrieve policies i/o pk/qk 2018-11-28 13:35:36 +01:00
Barend Gehrels
e24041efbb [get_turn_info] pass retrieve policy template argument 2018-11-27 21:57:20 +01:00
Barend Gehrels
51c4e277e7 [get_turn_info] call get_swapped_sides for linear/linear 2018-11-27 21:51:48 +01:00
Barend Gehrels
a47fee925c [get_turn_info] Make specific side calculator for other calculations
done in non typical order
2018-11-27 21:50:58 +01:00
Barend Gehrels
dcc6550c1f [get_turn_info] replace real intersection (for the sake of counting)
by direction code (made for that purpose)
2018-11-27 20:23:56 +01:00