powered by
Shortes distance from a point o a 2d segment
ShortestDistance(p, line)
A numeric value, the Euclidean distance of point p to the line.
p
line
coordinates of a point
a 2x2 matrix with the coordinates of two points defining a line
data2hist function and DouglasPeucker function
data2hist
DouglasPeucker