I'm trying to make curve index which represents how curvy or how edgy the polyline is on the map. For example index might be 0 on straight line and high as line curves. I tried to use sum of absolutes of 2 times differential from Y(latitude)/X(longtitude) which is diff(diff(Y))/diff(X)^2 in R. But I'm not so sure it can really satisfy what I'm trying to achieve. Is there concept which is related to this?
How to measure how curvy the polyline is?
0
$\begingroup$
ordinary-differential-equations
derivatives
differential-geometry
graphing-functions
curves
-
1Do you have examples you could show us? Is a polyline a sequence of connected line segments? – 2017-02-01
-
0To be exact, it's bus route line on the map. So yes it is connected lines – 2017-02-01
-
0Does the velocity of the buses matter? I ask this because you have some differential related tags and yet the paths are just straight line segments. – 2017-02-01
-
0No, I'm trying to make spatial feature. And reason why I used differential tag is, I thought since differentiation help us to find tangent and change in tangent is directly related to curve, it might be answer – 2017-02-01
-
0In general the idea is to compute "angle change" per "distance traveled". Both are cumulative properties, so you can compute a moving average, where you hold the distance relatively constant. – 2017-02-01